diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/util.cpp | 2 | ||||
| -rw-r--r-- | common/util.h | 4 |
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(); }; |
