소스 검색

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,
                              std::vector<std::string>& depends)
 {
-  std::string rccCommand = RccGetExecutable(target);
+  const std::string rccCommand = RccGetExecutable(target);
 
   bool hasDashDashList = false;
   // Read rcc features
@@ -839,7 +839,7 @@ void cmQtAutoGeneratorInitializer::SetupAutoGenerateTarget(
   static_cast<void>(varScope);
 
   // create a custom target for running generators at buildtime:
-  std::string autogenTargetName = GetAutogenTargetName(target);
+  const std::string autogenTargetName = GetAutogenTargetName(target);
 
   makefile->AddDefinition(
     "_moc_target_name",