diff options
-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(); }; |