[11628] Add explicit to ObjectGuid(uint32 const&)

No reason have implicit wrong uses catch version when main version
of constrictor have `explicit`. This also avoid unexpected selection
catch-version with less readable error output at implicit uses.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zergtmn 2011-06-12 22:00:41 +04:00 committed by VladimirMangos
parent 6190894330
commit d8d1988489
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class MANGOS_DLL_SPEC ObjectGuid
operator uint64() const { return m_guid; }
private:
ObjectGuid(uint32 const&); // no implementation, used for catch wrong type assign
explicit ObjectGuid(uint32 const&); // no implementation, used for catch wrong type assign
ObjectGuid(HighGuid, uint32, uint64 counter); // no implementation, used for catch wrong type assign
ObjectGuid(HighGuid, uint64 counter); // no implementation, used for catch wrong type assign

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11627"
#define REVISION_NR "11628"
#endif // __REVISION_NR_H__