diff options
author | Johannes Schickel | 2009-12-25 01:00:57 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-12-25 01:00:57 +0000 |
commit | f2dd376b385bd6b1b513fe97004aa2dfc3422d15 (patch) | |
tree | 287c42d7239922535c599c0985e561dad5c635e0 /tools/skycpt | |
parent | 74d28bf8e74b693157960883163cf5449b433236 (diff) | |
download | scummvm-rg350-f2dd376b385bd6b1b513fe97004aa2dfc3422d15.tar.gz scummvm-rg350-f2dd376b385bd6b1b513fe97004aa2dfc3422d15.tar.bz2 scummvm-rg350-f2dd376b385bd6b1b513fe97004aa2dfc3422d15.zip |
Removed a const-away cast.
svn-id: r46541
Diffstat (limited to 'tools/skycpt')
-rw-r--r-- | tools/skycpt/KmpSearch.cpp | 4 | ||||
-rw-r--r-- | tools/skycpt/KmpSearch.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/skycpt/KmpSearch.cpp b/tools/skycpt/KmpSearch.cpp index c70a0a77d8..4f561ba309 100644 --- a/tools/skycpt/KmpSearch.cpp +++ b/tools/skycpt/KmpSearch.cpp @@ -92,7 +92,7 @@ __declspec(naked) void __fastcall KmpSearch::init(const char *subStr) { } } -__declspec(naked) char * __fastcall KmpSearch::search(const char *str) { +__declspec(naked) const char * __fastcall KmpSearch::search(const char *str) { __asm { push esi push edi @@ -160,7 +160,7 @@ void __fastcall KmpSearch::init(const char *subStr) { strcpy(_subStr, subStr); } -char * __fastcall KmpSearch::search(const char *str) { +const char * __fastcall KmpSearch::search(const char *str) { return strstr(str, _subStr); } diff --git a/tools/skycpt/KmpSearch.h b/tools/skycpt/KmpSearch.h index ddf151046b..97ec1ca7c8 100644 --- a/tools/skycpt/KmpSearch.h +++ b/tools/skycpt/KmpSearch.h @@ -30,7 +30,7 @@ class KmpSearch { public: void __fastcall init(const char *subStr); - char * __fastcall search(const char *str); + const char * __fastcall search(const char *str); //private: char _retarget[256], _subStr[256]; unsigned long _strLen; |