From 58053e3f7114cf1295973b160d6b7e6ebcb2dfae Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 16 Sep 2010 10:31:20 +1000 Subject: Making methods const when they should be. --- src/Document.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index c7ff8e069..d58c5efe5 100644 --- a/src/Document.h +++ b/src/Document.h @@ -228,9 +228,9 @@ public: int ClampPositionIntoDocument(int pos); bool IsCrLf(int pos); int LenChar(int pos); - bool InGoodUTF8(int pos, int &start, int &end); + bool InGoodUTF8(int pos, int &start, int &end) const; int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true); - int NextPosition(int pos, int moveDir); + int NextPosition(int pos, int moveDir) const; bool NextCharacter(int &pos, int moveDir); // Returns true if pos changed int SCI_METHOD CodePage() const; bool SCI_METHOD IsDBCSLeadByte(char ch) const; -- cgit v1.2.3