From f756e89f53b407432c7db7c4134bfdb8af94d964 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Tue, 24 Aug 2021 11:37:51 +1000 Subject: OptionalFoldLevel uses no members so mark static. --- src/Editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(wParam) - vs.ExternalMarginWidth(), static_cast(lParam)); } - constexpr std::optional OptionalFoldLevel(Scintilla::sptr_t lParam) { + static constexpr std::optional OptionalFoldLevel(Scintilla::sptr_t lParam) { if (lParam >= 0) { return static_cast(lParam); } -- cgit v1.2.3