summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinePropertyCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-12 12:36:43 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-13 14:24:51 (GMT)
commit73d52a862bfe73f591458b47a016b7400057ecab (patch)
treee15b631885a81ad58dcc7dd4435809d3e694ac49 /Source/cmDefinePropertyCommand.cxx
parentf86d8009c6a4482c81221114a2b04b375564cc94 (diff)
downloadCMake-73d52a862bfe73f591458b47a016b7400057ecab.zip
CMake-73d52a862bfe73f591458b47a016b7400057ecab.tar.gz
CMake-73d52a862bfe73f591458b47a016b7400057ecab.tar.bz2
cmPropertyDefinition: Construct directly in defined state
Move `cmPropertyDefinitionMap::DefineProperty` functionality directly into the constructor to avoid an intermediate state.
Diffstat (limited to 'Source/cmDefinePropertyCommand.cxx')
-rw-r--r--Source/cmDefinePropertyCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDefinePropertyCommand.cxx b/Source/cmDefinePropertyCommand.cxx
index f4e4fda..4e2d9b0 100644
--- a/Source/cmDefinePropertyCommand.cxx
+++ b/Source/cmDefinePropertyCommand.cxx
@@ -95,7 +95,7 @@ bool cmDefinePropertyCommand(std::vector<std::string> const& args,
// Actually define the property.
status.GetMakefile().GetState()->DefineProperty(
- PropertyName, scope, BriefDocs.c_str(), FullDocs.c_str(), inherited);
+ PropertyName, scope, BriefDocs, FullDocs, inherited);
return true;
}