aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-08-01 13:09:10 +0200
committerWillem Jan Palenstijn2017-08-01 13:09:10 +0200
commit848a601c908f2739778c3cd66198891639f614d0 (patch)
treec4930284ffc2fb2d4acc69763a38842f12acd47e
parentb02d9a017477647de78b4ab682b870b6e93c9fe3 (diff)
downloadscummvm-rg350-848a601c908f2739778c3cd66198891639f614d0.tar.gz
scummvm-rg350-848a601c908f2739778c3cd66198891639f614d0.tar.bz2
scummvm-rg350-848a601c908f2739778c3cd66198891639f614d0.zip
FULLPIPE: Fix warning
-rw-r--r--engines/fullpipe/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 5500d23202..02b235ae32 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -502,7 +502,7 @@ Common::String genFileName(int superId, int sceneId, const char *ext) {
// Translates cp-1251..utf-8
byte *transCyrillic(const Common::String &str) {
- byte *s = (byte *)str.c_str();
+ const byte *s = (const byte *)str.c_str();
static byte tmp[1024];
#ifndef WIN32
@@ -527,7 +527,7 @@ byte *transCyrillic(const Common::String &str) {
int i = 0;
- for (byte *p = s; *p; p++) {
+ for (const byte *p = s; *p; p++) {
#ifdef WIN32
// translate from cp1251 to cp866
byte c = *p;