[Scummvm-cvs-logs] SF.net SVN: scummvm:[53508] scummvm/trunk/common

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Oct 15 20:30:29 CEST 2010


Revision: 53508
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53508&view=rev
Author:   lordhoto
Date:     2010-10-15 18:30:29 +0000 (Fri, 15 Oct 2010)

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

Modified Paths:
--------------
    scummvm/trunk/common/memorypool.h
    scummvm/trunk/common/mutex.h

Modified: scummvm/trunk/common/memorypool.h
===================================================================
--- scummvm/trunk/common/memorypool.h	2010-10-15 18:20:21 UTC (rev 53507)
+++ scummvm/trunk/common/memorypool.h	2010-10-15 18:30:29 UTC (rev 53508)
@@ -66,7 +66,7 @@
 	 * 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();
 
 	/**

Modified: scummvm/trunk/common/mutex.h
===================================================================
--- scummvm/trunk/common/mutex.h	2010-10-15 18:20:21 UTC (rev 53507)
+++ scummvm/trunk/common/mutex.h	2010-10-15 18:30:29 UTC (rev 53508)
@@ -49,8 +49,8 @@
 	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();
 };
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list