From 639cac83a375e2ce56ec6768a5963ebc20b2da39 Mon Sep 17 00:00:00 2001 From: zergtmn Date: Sat, 14 May 2011 22:08:19 +0600 Subject: [PATCH] [11488] Add ObjectGuid::operator !() for use as shorter form of IsEmpty() --- src/game/ObjectGuid.h | 1 + src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/ObjectGuid.h b/src/game/ObjectGuid.h index c8d3661ef..6f85cb2cc 100644 --- a/src/game/ObjectGuid.h +++ b/src/game/ObjectGuid.h @@ -162,6 +162,7 @@ class MANGOS_DLL_SPEC ObjectGuid TypeID GetTypeId() const { return GetTypeId(GetHigh()); } + bool operator! () const { return IsEmpty(); } bool operator== (ObjectGuid const& guid) const { return GetRawValue() == guid.GetRawValue(); } bool operator!= (ObjectGuid const& guid) const { return GetRawValue() != guid.GetRawValue(); } bool operator< (ObjectGuid const& guid) const { return GetRawValue() < guid.GetRawValue(); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 686738a30..afad6b882 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11487" + #define REVISION_NR "11488" #endif // __REVISION_NR_H__