summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Status.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-03 14:05:47 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-03 14:05:47 (GMT)
commit8e16c9ed1c43310b027b5769044fd22a21a97ec1 (patch)
tree273eff5ddbe16c8f718ffd47934f8b64b3aecb7a /Source/kwsys/Status.hxx.in
parenta89ae726f4cd7cb3c3e9d318f478e6ef90b0df60 (diff)
parent00ccc0f47c5ca1f640d1fe34eac135ac9a3adb36 (diff)
downloadCMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.zip
CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.gz
CMake-8e16c9ed1c43310b027b5769044fd22a21a97ec1.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2021-09-03 (0da908d4)
Diffstat (limited to 'Source/kwsys/Status.hxx.in')
-rw-r--r--Source/kwsys/Status.hxx.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/Status.hxx.in b/Source/kwsys/Status.hxx.in
index ed46d5c..16efaef 100644
--- a/Source/kwsys/Status.hxx.in
+++ b/Source/kwsys/Status.hxx.in
@@ -55,7 +55,10 @@ public:
#endif
/** Return true on "Success", false otherwise. */
- explicit operator bool() const { return this->Kind_ == Kind::Success; }
+ bool IsSuccess() const { return this->Kind_ == Kind::Success; }
+
+ /** Return true on "Success", false otherwise. */
+ explicit operator bool() const { return this->IsSuccess(); }
/** Return the kind of status. */
Kind GetKind() const { return this->Kind_; }