diff options
author | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-03 14:05:47 (GMT) |
commit | 8e16c9ed1c43310b027b5769044fd22a21a97ec1 (patch) | |
tree | 273eff5ddbe16c8f718ffd47934f8b64b3aecb7a /Source/kwsys/Status.hxx.in | |
parent | a89ae726f4cd7cb3c3e9d318f478e6ef90b0df60 (diff) | |
parent | 00ccc0f47c5ca1f640d1fe34eac135ac9a3adb36 (diff) | |
download | CMake-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.in | 5 |
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_; } |