Mark some methods as const.

This commit is contained in:
Andreas Jönsson 2015-06-01 18:48:49 +02:00
parent 933aae4fc2
commit 23ac5e3da8
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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;