COMMON: Made some constructors explicit, where we wouldn't really like implicit conversion.

svn-id: r53508
This commit is contained in:
Johannes Schickel 2010-10-15 18:30:29 +00:00
parent 08afc68df0
commit cf8b589984
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ public:
* Constructor for a memory pool with the given chunk size. * Constructor for a memory pool with the given chunk size.
* @param chunkSize the chunk size of this memory pool * @param chunkSize the chunk size of this memory pool
*/ */
MemoryPool(size_t chunkSize); explicit MemoryPool(size_t chunkSize);
~MemoryPool(); ~MemoryPool();
/** /**

View file

@ -49,8 +49,8 @@ class StackLock {
void lock(); void lock();
void unlock(); void unlock();
public: public:
StackLock(MutexRef mutex, const char *mutexName = NULL); explicit StackLock(MutexRef mutex, const char *mutexName = NULL);
StackLock(const Mutex &mutex, const char *mutexName = NULL); explicit StackLock(const Mutex &mutex, const char *mutexName = NULL);
~StackLock(); ~StackLock();
}; };