summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-08-13 13:57:23 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-08-19 08:49:30 (GMT)
commit5a2a275bb41e04891c2541a8e185b6daed259b0b (patch)
treef925d8384da5c4c9d921a6b47ad648f9b0b1bf78 /Source/cmGetPropertyCommand.cxx
parent2984df91002fe3e3db0d38f364e9842024a8ab2e (diff)
downloadCMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.zip
CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.gz
CMake-5a2a275bb41e04891c2541a8e185b6daed259b0b.tar.bz2
Refactor: reduce cmToCStr usage
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index bb3a40b..4b380c0 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -431,9 +431,8 @@ bool HandleVariableMode(cmExecutionStatus& status, const std::string& name,
return false;
}
- return StoreResult(
- infoType, status.GetMakefile(), variable,
- cmToCStr(status.GetMakefile().GetDefinition(propertyName)));
+ return StoreResult(infoType, status.GetMakefile(), variable,
+ status.GetMakefile().GetDefinition(propertyName));
}
bool HandleCacheMode(cmExecutionStatus& status, const std::string& name,