diff options
author | Johannes Schickel | 2010-10-15 18:30:29 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-10-15 18:30:29 +0000 |
commit | cf8b58998417b6735b8e69b9cd4673a3c3204f34 (patch) | |
tree | 6038b293458c394decea707eed009d339b4bcb67 /common | |
parent | 08afc68df0dd237ed27895135af51d66d76ef994 (diff) | |
download | scummvm-rg350-cf8b58998417b6735b8e69b9cd4673a3c3204f34.tar.gz scummvm-rg350-cf8b58998417b6735b8e69b9cd4673a3c3204f34.tar.bz2 scummvm-rg350-cf8b58998417b6735b8e69b9cd4673a3c3204f34.zip |
COMMON: Made some constructors explicit, where we wouldn't really like implicit conversion.
svn-id: r53508
Diffstat (limited to 'common')
-rw-r--r-- | common/memorypool.h | 2 | ||||
-rw-r--r-- | common/mutex.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/memorypool.h b/common/memorypool.h index 7188e854f9..e19d982913 100644 --- a/common/memorypool.h +++ b/common/memorypool.h @@ -66,7 +66,7 @@ public: * Constructor for a memory pool with the given chunk size. * @param chunkSize the chunk size of this memory pool */ - MemoryPool(size_t chunkSize); + explicit MemoryPool(size_t chunkSize); ~MemoryPool(); /** diff --git a/common/mutex.h b/common/mutex.h index ba5c45c30e..3addaa6b18 100644 --- a/common/mutex.h +++ b/common/mutex.h @@ -49,8 +49,8 @@ class StackLock { void lock(); void unlock(); public: - StackLock(MutexRef mutex, const char *mutexName = NULL); - StackLock(const Mutex &mutex, const char *mutexName = NULL); + explicit StackLock(MutexRef mutex, const char *mutexName = NULL); + explicit StackLock(const Mutex &mutex, const char *mutexName = NULL); ~StackLock(); }; |