mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
6190894330
commit
d8d1988489
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11627"
|
||||
#define REVISION_NR "11628"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue