summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-19 22:35:09 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2018-11-19 22:35:09 (GMT)
commita2648dda97454efdc8c785d83cf039f6d2383e9e (patch)
treeaacfe1e67c59539984df7229c9d6f645792681b1 /Source/cmSystemTools.cxx
parent1dc85a6652bc8255ff7a9ef39028a7df45e3007b (diff)
downloadCMake-a2648dda97454efdc8c785d83cf039f6d2383e9e.zip
CMake-a2648dda97454efdc8c785d83cf039f6d2383e9e.tar.gz
CMake-a2648dda97454efdc8c785d83cf039f6d2383e9e.tar.bz2
Mark operator bool explicit
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 9866d13..28aa57c 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -137,7 +137,10 @@ public:
CloseHandle(this->handle_);
}
}
- operator bool() const { return this->handle_ != INVALID_HANDLE_VALUE; }
+ explicit operator bool() const
+ {
+ return this->handle_ != INVALID_HANDLE_VALUE;
+ }
bool operator!() const { return this->handle_ == INVALID_HANDLE_VALUE; }
operator HANDLE() const { return this->handle_; }