Mark some methods as const.
This commit is contained in:
parent
933aae4fc2
commit
23ac5e3da8
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user