Quellcode durchsuchen

cmInstallTargetGenerator: Re-arrange data layout.

Remove unused cmGeneratorTarget member.

Size goes from 238 to 232 bytes.
Stephen Kelly vor 10 Jahren
Ursprung
Commit
dd0417c7be
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 3 1
      Source/cmInstallTargetGenerator.cxx
  2. 2 4
      Source/cmInstallTargetGenerator.h

+ 3 - 1
Source/cmInstallTargetGenerator.cxx

@@ -29,7 +29,9 @@ cmInstallTargetGenerator
                            MessageLevel message,
                            MessageLevel message,
                            bool optional):
                            bool optional):
   cmInstallGenerator(dest, configurations, component, message), Target(&t),
   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->ActionsPerConfig = true;
   this->NamelinkMode = NamelinkModeNone;
   this->NamelinkMode = NamelinkModeNone;

+ 2 - 4
Source/cmInstallTargetGenerator.h

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