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 /gtk/ScintillaGTK.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 'gtk/ScintillaGTK.cxx')
| -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) { |
