From 6163f146b2951c492de312365161b8a0f9d1afd1 Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 13 May 2014 01:13:53 +0200 Subject: add GatoAddress::isNull() --- gatoaddress.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gatoaddress.cpp') diff --git a/gatoaddress.cpp b/gatoaddress.cpp index df28eeb..3aeb355 100644 --- a/gatoaddress.cpp +++ b/gatoaddress.cpp @@ -79,6 +79,11 @@ GatoAddress & GatoAddress::operator =(const GatoAddress& o) return *this; } +bool GatoAddress::isNull() const +{ + return toUInt64() == 0; +} + quint64 GatoAddress::toUInt64() const { return d->addr.u64; -- cgit v1.2.3