COMMON: Made some constructors explicit, where we wouldn't really like implicit conversion.
svn-id: r53508
This commit is contained in:
parent
08afc68df0
commit
cf8b589984
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue