From dcfde59229aeb96908aa0fa234753d22c8452b00 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Jan 1999 13:44:26 +0000 Subject: [PATCH] bool wxString::operator!() const added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/string.h b/include/wx/string.h index f3c3c00111..c23b431316 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -266,6 +266,8 @@ public: size_t Len() const { return GetStringData()->nDataLength; } // string contains any characters? bool IsEmpty() const { return Len() == 0; } + // empty string is "FALSE", so !str will return TRUE + bool operator!() const { return IsEmpty(); } // empty string contents void Empty() {