From 6ac75b539d14c1344cf00a696daec110d9710d00 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Mon, 11 May 2009 22:26:49 +0000 Subject: Add --quit, --check for Windows; required fixing LockFile for Windows git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@773712 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/Uuid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing') diff --git a/cpp/src/qpid/framing/Uuid.h b/cpp/src/qpid/framing/Uuid.h index fe0c32dc0b..b595a2ff42 100644 --- a/cpp/src/qpid/framing/Uuid.h +++ b/cpp/src/qpid/framing/Uuid.h @@ -58,8 +58,9 @@ struct Uuid : public boost::array { void clear() { uuid_clear(c_array()); } /** Test for null (all zeros). */ + // Force int 0/!0 to false/true; avoids compile warnings. bool isNull() { - return uuid_is_null(data()); + return !!uuid_is_null(data()); } // Default op= and copy ctor are fine. -- cgit v1.2.1