Просмотр исходного кода

cmInstallTargetGenerator: Re-arrange data layout.

Remove unused cmGeneratorTarget member.

Size goes from 238 to 232 bytes.
Stephen Kelly 10 лет назад
Родитель
Сommit
dd0417c7be
2 измененных файлов с 5 добавлено и 5 удалено
  1. 3 1
      Source/cmInstallTargetGenerator.cxx
  2. 2 4
      Source/cmInstallTargetGenerator.h

+ 3 - 1
Source/cmInstallTargetGenerator.cxx

@@ -29,7 +29,9 @@ cmInstallTargetGenerator
                            MessageLevel message,
                            bool optional):
   cmInstallGenerator(dest, configurations, component, message), Target(&t),
-  ImportLibrary(implib), FilePermissions(file_permissions), Optional(optional)
+  FilePermissions(file_permissions),
+  ImportLibrary(implib),
+  Optional(optional)
 {
   this->ActionsPerConfig = true;
   this->NamelinkMode = NamelinkModeNone;

+ 2 - 4
Source/cmInstallTargetGenerator.h

@@ -14,7 +14,6 @@
 
 #include "cmInstallGenerator.h"
 #include "cmTarget.h"
-#include "cmGeneratorTarget.h"
 
 /** \class cmInstallTargetGenerator
  * \brief Generate target installation rules.
@@ -100,11 +99,10 @@ protected:
                      const std::string& toDestDirPath);
 
   cmTarget* Target;
-  bool ImportLibrary;
   std::string FilePermissions;
-  bool Optional;
   NamelinkModeType NamelinkMode;
-  cmGeneratorTarget* GeneratorTarget;
+  bool ImportLibrary;
+  bool Optional;
 };
 
 #endif