aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-02-17 12:50:07 +1100
committerNeil <nyamatongwe@gmail.com>2023-02-17 12:50:07 +1100
commit56d6a8af344938367c3d01c3969c212b3d3b9427 (patch)
treeb94d9c879be38118d572b5c998da087464cd742d
parent286f99e34248b0bebc7663066a87c18dcc2ea97a (diff)
downloadscintilla-mirror-56d6a8af344938367c3d01c3969c212b3d3b9427.tar.gz
Remove PropGetExpanded and treat GetPropertyExpanded as GetProperty since it no
longer expands property references.
-rw-r--r--src/ScintillaBase.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index f8b3aefda..02b8040a4 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -581,7 +581,6 @@ public:
void PropSet(const char *key, const char *val);
const char *PropGet(const char *key) const;
int PropGetInt(const char *key, int defaultValue=0) const;
- size_t PropGetExpanded(const char *key, char *result) const;
LineEndType LineEndTypesSupported() override;
int AllocateSubStyles(int styleBase, int numberStyles);
@@ -701,19 +700,6 @@ int LexState::PropGetInt(const char *key, int defaultValue) const {
return defaultValue;
}
-size_t LexState::PropGetExpanded(const char *key, char *result) const {
- if (instance) {
- const char *value = instance->PropertyGet(key);
- if (value) {
- if (result) {
- strcpy(result, value);
- }
- return strlen(value);
- }
- }
- return 0;
-}
-
LineEndType LexState::LineEndTypesSupported() {
if (instance) {
return static_cast<LineEndType>(instance->LineEndTypesSupported());
@@ -1055,8 +1041,7 @@ sptr_t ScintillaBase::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
return StringResult(lParam, DocumentLexState()->PropGet(ConstCharPtrFromUPtr(wParam)));
case Message::GetPropertyExpanded:
- return DocumentLexState()->PropGetExpanded(ConstCharPtrFromUPtr(wParam),
- CharPtrFromSPtr(lParam));
+ return StringResult(lParam, DocumentLexState()->PropGet(ConstCharPtrFromUPtr(wParam)));
case Message::GetPropertyInt:
return DocumentLexState()->PropGetInt(ConstCharPtrFromUPtr(wParam), static_cast<int>(lParam));