Browse Source

Autogen: Remove redundant push_back

Orkun Tokdemir 1 year ago
parent
commit
003830f14f
1 changed files with 2 additions and 5 deletions
  1. 2 5
      Source/cmQtAutoGenInitializer.cxx

+ 2 - 5
Source/cmQtAutoGenInitializer.cxx

@@ -1671,13 +1671,10 @@ bool cmQtAutoGenInitializer::InitRccTargets()
       sf->SetProperty("SKIP_UNITY_BUILD_INCLUSION", "On");
     }
 
-    std::vector<std::string> ccOutput;
-    ccOutput.push_back(qrc.OutputFile);
+    std::vector<std::string> ccOutput{ qrc.OutputFile };
 
-    std::vector<std::string> ccDepends;
     // Add the .qrc and info file to the custom command dependencies
-    ccDepends.push_back(qrc.QrcFile);
-    ccDepends.push_back(qrc.InfoFile);
+    std::vector<std::string> ccDepends{ qrc.QrcFile, qrc.InfoFile };
 
     cmCustomCommandLines commandLines;
     AddCMakeProcessToCommandLines(qrc.InfoFile, "cmake_autorcc", commandLines);