Added explicit qualifier to constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1020 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c1f17ce2f0
commit
2d6266ba0b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ namespace Loki
|
|||
/** Constructor locks mutex associated with an object.
|
||||
@param lockpair a std::pair of pointers to the object and the mutex
|
||||
*/
|
||||
LockingPtr( Pair lockpair )
|
||||
explicit LockingPtr( Pair lockpair )
|
||||
: pObject_( const_cast< SharedObject * >( lockpair.first ) ),
|
||||
pMutex_( lockpair.second )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue