Преглед на файлове

Autogen: Rename settings string variables

Sebastian Holtermann преди 8 години
родител
ревизия
739592c925
променени са 2 файла, в които са добавени 13 реда и са изтрити 12 реда
  1. 9 9
      Source/cmQtAutoGenerators.cxx
  2. 4 3
      Source/cmQtAutoGenerators.h

+ 9 - 9
Source/cmQtAutoGenerators.cxx

@@ -469,20 +469,20 @@ void cmQtAutoGenerators::SettingsFileRead(cmMakefile* makefile,
                                           const std::string& targetDirectory)
 {
   // Compose current settings strings
-  this->MocSettingsString = this->SettingsStringGenMoc();
-  this->UicSettingsString = this->SettingsStringGenUic();
-  this->RccSettingsString = this->SettingsStringGenRcc();
+  this->SettingsStringMoc = this->SettingsStringGenMoc();
+  this->SettingsStringUic = this->SettingsStringGenUic();
+  this->SettingsStringRcc = this->SettingsStringGenRcc();
 
   // Read old settings
   const std::string filename = SettingsFile(targetDirectory);
   if (makefile->ReadListFile(filename.c_str())) {
-    if (!SettingsMatch(makefile, SettingsKeyMoc, this->MocSettingsString)) {
+    if (!SettingsMatch(makefile, SettingsKeyMoc, this->SettingsStringMoc)) {
       this->GenerateAllMoc = true;
     }
-    if (!SettingsMatch(makefile, SettingsKeyUic, this->UicSettingsString)) {
+    if (!SettingsMatch(makefile, SettingsKeyUic, this->SettingsStringUic)) {
       this->GenerateAllUic = true;
     }
-    if (!SettingsMatch(makefile, SettingsKeyRcc, this->RccSettingsString)) {
+    if (!SettingsMatch(makefile, SettingsKeyRcc, this->SettingsStringRcc)) {
       this->GenerateAllRcc = true;
     }
     // In case any setting changed remove the old settings file.
@@ -513,9 +513,9 @@ bool cmQtAutoGenerators::SettingsFileWrite(const std::string& targetDirectory)
     cmsys::ofstream outfile;
     outfile.open(filename.c_str(), std::ios::trunc);
     if (outfile) {
-      SettingWrite(outfile, SettingsKeyMoc, this->MocSettingsString);
-      SettingWrite(outfile, SettingsKeyUic, this->UicSettingsString);
-      SettingWrite(outfile, SettingsKeyRcc, this->RccSettingsString);
+      SettingWrite(outfile, SettingsKeyMoc, this->SettingsStringMoc);
+      SettingWrite(outfile, SettingsKeyUic, this->SettingsStringUic);
+      SettingWrite(outfile, SettingsKeyRcc, this->SettingsStringRcc);
       success = outfile.good();
       outfile.close();
     } else {

+ 4 - 3
Source/cmQtAutoGenerators.h

@@ -140,6 +140,10 @@ private:
   // - File lists
   std::vector<std::string> Sources;
   std::vector<std::string> Headers;
+  // - Settings
+  std::string SettingsStringMoc;
+  std::string SettingsStringUic;
+  std::string SettingsStringRcc;
   // - Moc
   std::vector<std::string> SkipMoc;
   std::string MocCompileDefinitionsStr;
@@ -150,17 +154,14 @@ private:
   std::list<std::string> MocIncludes;
   std::list<std::string> MocDefinitions;
   std::vector<std::string> MocOptions;
-  std::string MocSettingsString;
   // - Uic
   std::vector<std::string> SkipUic;
   std::vector<std::string> UicTargetOptions;
   std::map<std::string, std::string> UicOptions;
-  std::string UicSettingsString;
   // - Rcc
   std::vector<std::string> RccSources;
   std::map<std::string, std::string> RccOptions;
   std::map<std::string, std::vector<std::string> > RccInputs;
-  std::string RccSettingsString;
   // - Utility
   cmFilePathChecksum fpathCheckSum;
   cmsys::RegularExpression RegExpQObject;