diff options
author | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
commit | 44da106995e3b3ca4068f584c16f59d8fced4e69 (patch) | |
tree | 72512a72ac08ef47a2f40d9b30b0f208a245fda0 /src/ScintillaBase.cxx | |
parent | 2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff) | |
download | scintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 64411ed1a..31db93eca 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -367,13 +367,13 @@ void ScintillaBase::AutoCompleteCompleted() { SetLastXChosen(); } -int ScintillaBase::AutoCompleteGetCurrent() { +int ScintillaBase::AutoCompleteGetCurrent() const { if (!ac.Active()) return -1; return ac.GetSelection(); } -int ScintillaBase::AutoCompleteGetCurrentText(char *buffer) { +int ScintillaBase::AutoCompleteGetCurrentText(char *buffer) const { if (ac.Active()) { int item = ac.GetSelection(); if (item != -1) { |