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;
|
const int foldLevel = _scintView.execute(SCI_GETFOLDLEVEL, line) & SC_FOLDLEVELNUMBERMASK;
|
||||||
return foldLevel == SC_FOLDLEVELBASE + 3;
|
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".
|
// Input: a string like "\tLine 3: search result".
|
||||||
// Output: "search result"
|
// Output: "search result"
|
||||||
|
@ -178,8 +178,8 @@ private:
|
|||||||
_scintView.execute(SCI_SETREADONLY, isReadOnly);
|
_scintView.execute(SCI_SETREADONLY, isReadOnly);
|
||||||
};
|
};
|
||||||
|
|
||||||
bool isLineActualSearchResult(int line);
|
bool isLineActualSearchResult(int line) const;
|
||||||
generic_string prepareStringForClipboard(generic_string s);
|
generic_string prepareStringForClipboard(generic_string s) const;
|
||||||
|
|
||||||
static FoundInfo EmptyFoundInfo;
|
static FoundInfo EmptyFoundInfo;
|
||||||
static SearchResultMarking EmptySearchResultMarking;
|
static SearchResultMarking EmptySearchResultMarking;
|
||||||
|
Loading…
Reference in New Issue
Block a user