diff options
author | Neil <nyamatongwe@gmail.com> | 2020-03-27 09:16:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-03-27 09:16:06 +1100 |
commit | 30748b957f1fbce6c79c7ac48e8b377cd6c7fd5a (patch) | |
tree | f63b654633f26805744fe1a1f1dd7bbb674ab6b1 /src/ScintillaBase.cxx | |
parent | 6788d9d6d53438b92bbed78b4cb3d3ad9c581ae2 (diff) | |
download | scintilla-mirror-30748b957f1fbce6c79c7ac48e8b377cd6c7fd5a.tar.gz |
Avoid casts by returning size_t from GetExpanded.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 7794ea75e..2098fcb6f 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -575,7 +575,7 @@ 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; - int PropGetExpanded(const char *key, char *result) const; + size_t PropGetExpanded(const char *key, char *result) const; int LineEndTypesSupported() override; int AllocateSubStyles(int styleBase, int numberStyles); @@ -741,7 +741,7 @@ int LexState::PropGetInt(const char *key, int defaultValue) const { return props.GetInt(key, defaultValue); } -int LexState::PropGetExpanded(const char *key, char *result) const { +size_t LexState::PropGetExpanded(const char *key, char *result) const { return props.GetExpanded(key, result); } |