X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=551bd13ab877a271c759978caf90dbbcb7750d0f;hp=64bfbbc784860e4993807a1977ac67eea873566c;hb=23ebdc0a422294764ff3be3f8d7e56cc2b323185;hpb=92bc51670686fe3e2c7077e7114389d25cbbfe13 diff --git a/src/common/types.h b/src/common/types.h index 64bfbbc7..551bd13a 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -32,6 +32,7 @@ class SignedId { public: inline SignedId(int _id = 0) { id = _id; } inline qint32 toInt() const { return id; } + inline bool isValid() const { return id > 0; } inline bool operator==(const SignedId &other) const { return id == other.id; } inline bool operator!=(const SignedId &other) const { return id != other.id; }