summaryrefslogtreecommitdiffstats
path: root/Source/cmInstalledFile.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2018-08-31 23:01:22 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-05 19:12:57 (GMT)
commit6f16be6a6265ee19bd8193da8a7a0d111717ee80 (patch)
tree3c4cf88923ac34587e5abe2d2f701c7572cc599c /Source/cmInstalledFile.cxx
parent612975c6652c83c29fcfcf56a7b5a0cfe0218c93 (diff)
downloadCMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.zip
CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.gz
CMake-6f16be6a6265ee19bd8193da8a7a0d111717ee80.tar.bz2
Remove unnecessary c_str() calls
Use the new IsOn(),IsOff() overloads.
Diffstat (limited to 'Source/cmInstalledFile.cxx')
-rw-r--r--Source/cmInstalledFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmInstalledFile.cxx b/Source/cmInstalledFile.cxx
index 3ffeabd..0e06029 100644
--- a/Source/cmInstalledFile.cxx
+++ b/Source/cmInstalledFile.cxx
@@ -102,7 +102,7 @@ bool cmInstalledFile::GetPropertyAsBool(const std::string& prop) const
{
std::string value;
bool isSet = this->GetProperty(prop, value);
- return isSet && cmSystemTools::IsOn(value.c_str());
+ return isSet && cmSystemTools::IsOn(value);
}
void cmInstalledFile::GetPropertyAsList(const std::string& prop,