From 85237dd55cd67cf9f72a751f5a275a910350e5cd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 24 May 2013 00:04:54 +1000 Subject: Made methods const where they can be and are logically const as well. --- src/ScintillaBase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ScintillaBase.cxx') 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) { -- cgit v1.2.3