From 9fc4f469b817063f7d61e432c2d1ea6ae05f4628 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 8 Aug 2012 01:35:34 -0700 Subject: [PATCH] Add STAmount::isNonZero --- src/SerializedTypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SerializedTypes.h b/src/SerializedTypes.h index 9a1c34b3f8..cb719d2c15 100644 --- a/src/SerializedTypes.h +++ b/src/SerializedTypes.h @@ -290,6 +290,7 @@ public: bool isNative() const { return mIsNative; } bool isZero() const { return mValue == 0; } + bool isNonZero() const { return mValue != 0; } bool isNegative() const { return mIsNegative && !isZero(); } bool isPositive() const { return !mIsNegative && !isZero(); } bool isGEZero() const { return !mIsNegative; }