From acb772397633f7c46d31b12f96321a2a2f26d80b Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 26 Oct 2016 08:26:35 +1100 Subject: Marked method const as it can be. --- src/Editor.cxx | 2 +- src/Editor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 15848f056..f721c4361 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5573,7 +5573,7 @@ void Editor::AddStyledText(char *buffer, int appendLength) { SetEmptySelection(sel.MainCaret() + lengthInserted); } -bool Editor::ValidMargin(uptr_t wParam) { +bool Editor::ValidMargin(uptr_t wParam) const { return wParam < vs.ms.size(); } diff --git a/src/Editor.h b/src/Editor.h index 5fdcbffb9..d907a2d0b 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -571,7 +571,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void AddStyledText(char *buffer, int appendLength); virtual sptr_t DefWndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) = 0; - bool ValidMargin(uptr_t wParam); + bool ValidMargin(uptr_t wParam) const; void StyleSetMessage(unsigned int iMessage, uptr_t wParam, sptr_t lParam); sptr_t StyleGetMessage(unsigned int iMessage, uptr_t wParam, sptr_t lParam); -- cgit v1.2.3