فهرست منبع

QtAutogen: Make strings const

Sebastian Holtermann 9 سال پیش
والد
کامیت
bb8c96689f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Source/cmQtAutoGeneratorInitializer.cxx

+ 2 - 2
Source/cmQtAutoGeneratorInitializer.cxx

@@ -429,7 +429,7 @@ static void RccMergeOptions(std::vector<std::string>& opts,
 static bool RccListInputsQt5(cmSourceFile* sf, cmGeneratorTarget const* target,
 static bool RccListInputsQt5(cmSourceFile* sf, cmGeneratorTarget const* target,
                              std::vector<std::string>& depends)
                              std::vector<std::string>& depends)
 {
 {
-  std::string rccCommand = RccGetExecutable(target);
+  const std::string rccCommand = RccGetExecutable(target);
 
 
   bool hasDashDashList = false;
   bool hasDashDashList = false;
   // Read rcc features
   // Read rcc features
@@ -839,7 +839,7 @@ void cmQtAutoGeneratorInitializer::SetupAutoGenerateTarget(
   static_cast<void>(varScope);
   static_cast<void>(varScope);
 
 
   // create a custom target for running generators at buildtime:
   // create a custom target for running generators at buildtime:
-  std::string autogenTargetName = GetAutogenTargetName(target);
+  const std::string autogenTargetName = GetAutogenTargetName(target);
 
 
   makefile->AddDefinition(
   makefile->AddDefinition(
     "_moc_target_name",
     "_moc_target_name",