aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2021-08-24 11:37:51 +1000
committerZufu Liu <unknown>2021-08-24 11:37:51 +1000
commitf756e89f53b407432c7db7c4134bfdb8af94d964 (patch)
treee4c3a6c1a4de92070b55d3431d27e55fec79f190
parent02914e8e53c3e72e9fc3a05f8e75078cad4eb0f6 (diff)
downloadscintilla-mirror-f756e89f53b407432c7db7c4134bfdb8af94d964.tar.gz
OptionalFoldLevel uses no members so mark static.
-rw-r--r--src/Editor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 37df93c93..d6ee0a80f 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -641,7 +641,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
return Point(static_cast<XYPOSITION>(wParam) - vs.ExternalMarginWidth(), static_cast<XYPOSITION>(lParam));
}
- constexpr std::optional<FoldLevel> OptionalFoldLevel(Scintilla::sptr_t lParam) {
+ static constexpr std::optional<FoldLevel> OptionalFoldLevel(Scintilla::sptr_t lParam) {
if (lParam >= 0) {
return static_cast<FoldLevel>(lParam);
}