diff options
author | Brad King <brad.king@kitware.com> | 2019-07-29 14:19:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-29 14:21:27 (GMT) |
commit | c9c397a14ac59b25e43ce43264a420b2f9537547 (patch) | |
tree | ad6c6e5fff6199ac82ad37e59011e31febc07555 /Source/cmFileAPICodemodel.cxx | |
parent | 8ce189720ee8daafed4848ee9eb970f9e0546578 (diff) | |
download | CMake-c9c397a14ac59b25e43ce43264a420b2f9537547.zip CMake-c9c397a14ac59b25e43ce43264a420b2f9537547.tar.gz CMake-c9c397a14ac59b25e43ce43264a420b2f9537547.tar.bz2 |
fileapi: Avoid unnecessary CompileData move
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r-- | Source/cmFileAPICodemodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx index 7b916cd..0c4f5c4 100644 --- a/Source/cmFileAPICodemodel.cxx +++ b/Source/cmFileAPICodemodel.cxx @@ -287,7 +287,7 @@ class Target Json::ArrayIndex si); void AddBacktrace(Json::Value& object, cmListFileBacktrace const& bt); Json::Value DumpPaths(); - Json::Value DumpCompileData(CompileData cd); + Json::Value DumpCompileData(CompileData const& cd); Json::Value DumpInclude(CompileData::IncludeEntry const& inc); Json::Value DumpDefine(BT<std::string> const& def); Json::Value DumpSources(); @@ -915,7 +915,7 @@ Json::Value Target::DumpSource(cmGeneratorTarget::SourceAndKind const& sk, return source; } -Json::Value Target::DumpCompileData(CompileData cd) +Json::Value Target::DumpCompileData(CompileData const& cd) { Json::Value result = Json::objectValue; |