aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2004-02-14 11:15:48 +0000
committerMax Horn2004-02-14 11:15:48 +0000
commit99551bd74622bbf5c8a9dc15749140b24613e322 (patch)
tree318b4902552db3b2897bbea9366224aa387f106d
parenta690c17bb242694af59c073d4a48e359a06b8295 (diff)
downloadscummvm-rg350-99551bd74622bbf5c8a9dc15749140b24613e322.tar.gz
scummvm-rg350-99551bd74622bbf5c8a9dc15749140b24613e322.tar.bz2
scummvm-rg350-99551bd74622bbf5c8a9dc15749140b24613e322.zip
const correctness!
svn-id: r12874
-rw-r--r--common/util.cpp2
-rw-r--r--common/util.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 601894883d..4e77d60b58 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -103,7 +103,7 @@ uint RandomSource::getRandomNumberRng(uint min, uint max) {
#pragma mark -
-StackLock::StackLock(OSystem::MutexRef mutex, OSystem *syst, char *mutexName)
+StackLock::StackLock(OSystem::MutexRef mutex, OSystem *syst, const char *mutexName)
: _mutex(mutex), _syst(syst), _mutexName(mutexName) {
if (syst == 0)
_syst = g_system;
diff --git a/common/util.h b/common/util.h
index e05cc12c71..7d5ad4ffbc 100644
--- a/common/util.h
+++ b/common/util.h
@@ -81,12 +81,12 @@ public:
class StackLock {
OSystem::MutexRef _mutex;
OSystem *_syst;
- char *_mutexName;
+ const char *_mutexName;
void lock();
void unlock();
public:
- StackLock(OSystem::MutexRef mutex, OSystem *syst = 0, char *mutexName = NULL);
+ StackLock(OSystem::MutexRef mutex, OSystem *syst = 0, const char *mutexName = NULL);
~StackLock();
};