diff options
author | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
commit | 85237dd55cd67cf9f72a751f5a275a910350e5cd (patch) | |
tree | 6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /gtk | |
parent | d6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff) | |
download | scintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 77693781e..1efcac348 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -172,7 +172,7 @@ private: virtual bool DragThreshold(Point ptStart, Point ptNow); virtual void StartDrag(); int TargetAsUTF8(char *text); - int EncodedFromUTF8(char *utf8, char *encoded); + int EncodedFromUTF8(char *utf8, char *encoded) const; virtual bool ValidCodePage(int codePage) const; public: // Public for scintilla_send_message virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); @@ -895,7 +895,7 @@ int ScintillaGTK::TargetAsUTF8(char *text) { // Translates a nul terminated UTF8 string into the document encoding. // Return the length of the result in bytes. -int ScintillaGTK::EncodedFromUTF8(char *utf8, char *encoded) { +int ScintillaGTK::EncodedFromUTF8(char *utf8, char *encoded) const { int inputLength = (lengthForEncode >= 0) ? lengthForEncode : strlen(utf8); if (IsUnicodeMode()) { if (encoded) { |