diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-12 12:36:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-13 14:24:51 (GMT) |
commit | 73d52a862bfe73f591458b47a016b7400057ecab (patch) | |
tree | e15b631885a81ad58dcc7dd4435809d3e694ac49 /Source/cmState.cxx | |
parent | f86d8009c6a4482c81221114a2b04b375564cc94 (diff) | |
download | CMake-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/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 9fc7615..51e4976 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -335,8 +335,8 @@ cmStateSnapshot cmState::Reset() void cmState::DefineProperty(const std::string& name, cmProperty::ScopeType scope, - const char* ShortDescription, - const char* FullDescription, bool chained) + const std::string& ShortDescription, + const std::string& FullDescription, bool chained) { this->PropertyDefinitions[scope].DefineProperty( name, scope, ShortDescription, FullDescription, chained); |