summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapCPPCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 16:07:39 (GMT)
commitf6e7d5f3a00eee04834840a9534d19445fd3ab8f (patch)
tree13f730473cd908d4d8f4673ff5ea78987385bf5a /Source/cmQTWrapCPPCommand.cxx
parentc43b0505a5806ce38274899cc09f42d3fd7d72ee (diff)
downloadCMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.zip
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.gz
CMake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.bz2
Reduce the scope of temporary cmProp variables and other improvements
Diffstat (limited to 'Source/cmQTWrapCPPCommand.cxx')
-rw-r--r--Source/cmQTWrapCPPCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmQTWrapCPPCommand.cxx b/Source/cmQTWrapCPPCommand.cxx
index de462db..e058176 100644
--- a/Source/cmQTWrapCPPCommand.cxx
+++ b/Source/cmQTWrapCPPCommand.cxx
@@ -40,8 +40,7 @@ bool cmQTWrapCPPCommand(std::vector<std::string> const& args,
cmStrCat(mf.GetCurrentBinaryDirectory(), "/moc_", srcName, ".cxx");
cmSourceFile* sf = mf.GetOrCreateSource(newName, true);
if (curr) {
- cmProp p = curr->GetProperty("ABSTRACT");
- sf->SetProperty("ABSTRACT", cmToCStr(p));
+ sf->SetProperty("ABSTRACT", cmToCStr(curr->GetProperty("ABSTRACT")));
}
// Compute the name of the header from which to generate the file.