From c9c397a14ac59b25e43ce43264a420b2f9537547 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 29 Jul 2019 10:19:32 -0400 Subject: fileapi: Avoid unnecessary CompileData move --- Source/cmFileAPICodemodel.cxx | 4 ++-- 1 file 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 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; -- cgit v0.12