CMake/Source/cmPropertyDefinition.cxx
Vitaly Stakhovsky 73d52a862b cmPropertyDefinition: Construct directly in defined state
Move `cmPropertyDefinitionMap::DefineProperty` functionality
directly into the constructor to avoid an intermediate state.
2020-03-13 10:24:51 -04:00

19 lines
700 B
C++

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmPropertyDefinition.h"
#include <utility>
cmPropertyDefinition::cmPropertyDefinition(std::string name,
cmProperty::ScopeType scope,
std::string shortDescription,
std::string fullDescription,
bool chain)
: Name(std::move(name))
, ShortDescription(std::move(shortDescription))
, FullDescription(std::move(fullDescription))
, Scope(scope)
, Chained(chain)
{
}