diff options
author | Johannes Schickel | 2012-03-29 02:05:45 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-03-29 02:05:45 +0200 |
commit | 7414544121bacef05eb6c4e9a1cf63f225db84be (patch) | |
tree | 1292eb0f82fbacabcb1e60da4c73faef6b9fc344 /gui/predictivedialog.h | |
parent | 988c3fd6c5d77b711c449a79693ba9981289e721 (diff) | |
download | scummvm-rg350-7414544121bacef05eb6c4e9a1cf63f225db84be.tar.gz scummvm-rg350-7414544121bacef05eb6c4e9a1cf63f225db84be.tar.bz2 scummvm-rg350-7414544121bacef05eb6c4e9a1cf63f225db84be.zip |
GUI: Constify some parameters/methods in PredictiveDialog.
Diffstat (limited to 'gui/predictivedialog.h')
-rw-r--r-- | gui/predictivedialog.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/predictivedialog.h b/gui/predictivedialog.h index 792e744ab6..32de36d5f2 100644 --- a/gui/predictivedialog.h +++ b/gui/predictivedialog.h @@ -71,7 +71,7 @@ public: virtual void handleKeyDown(Common::KeyState state); virtual void handleTickle(); - char *getResult() { return _predictiveResult; } + const char *getResult() const { return _predictiveResult; } private: struct Dict { char **dictLine; @@ -83,14 +83,14 @@ private: Common::String fnameDict; }; - uint8 countWordsInString(char *str); + uint8 countWordsInString(const char *const str); void bringWordtoTop(char *str, int wordnum); void loadDictionary(Common::SeekableReadStream *in, Dict &dict); void loadAllDictionary(Dict &dict); void addWordToDict(); void addWord(Dict &dict, const Common::String &word, const Common::String &code); - bool searchWord(char *where, const Common::String &whatCode); - int binarySearch(char **dictLine, const Common::String &code, int dictLineCount); + bool searchWord(const char *const where, const Common::String &whatCode); + int binarySearch(const char *const *const dictLine, const Common::String &code, const int dictLineCount); bool matchWord(); void processBtnActive(ButtonId active); void pressEditText(); |