Explorar o código

Autogen: Remove redundant push_back

Orkun Tokdemir hai 1 ano
pai
achega
003830f14f
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  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);