From 23ac5e3da840d82b1e8561aa7f5fa70c2f6655d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20J=C3=B6nsson?= Date: Mon, 1 Jun 2015 18:48:49 +0200 Subject: [PATCH] Mark some methods as const. --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 4 ++-- PowerEditor/src/ScitillaComponent/FindReplaceDlg.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 1279b3fa..cf9fdb4b 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -2505,13 +2505,13 @@ void Finder::openAll() } } -bool Finder::isLineActualSearchResult(int line) +bool Finder::isLineActualSearchResult(int line) const { const int foldLevel = _scintView.execute(SCI_GETFOLDLEVEL, line) & SC_FOLDLEVELNUMBERMASK; return foldLevel == SC_FOLDLEVELBASE + 3; } -generic_string Finder::prepareStringForClipboard(generic_string s) +generic_string Finder::prepareStringForClipboard(generic_string s) const { // Input: a string like "\tLine 3: search result". // Output: "search result" diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h index 280afc29..52a436c0 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.h @@ -178,8 +178,8 @@ private: _scintView.execute(SCI_SETREADONLY, isReadOnly); }; - bool isLineActualSearchResult(int line); - generic_string prepareStringForClipboard(generic_string s); + bool isLineActualSearchResult(int line) const; + generic_string prepareStringForClipboard(generic_string s) const; static FoundInfo EmptyFoundInfo; static SearchResultMarking EmptySearchResultMarking;