Browse Source

cmProcessTools: Re-arrange data layout.

Size goes from 72 to 64 bytes.
Stephen Kelly 10 years ago
parent
commit
40844a1487
2 changed files with 4 additions and 4 deletions
  1. 1 1
      Source/cmProcessTools.cxx
  2. 3 3
      Source/cmProcessTools.h

+ 1 - 1
Source/cmProcessTools.cxx

@@ -44,7 +44,7 @@ void cmProcessTools::RunProcess(struct cmsysProcess_s* cp,
 
 //----------------------------------------------------------------------------
 cmProcessTools::LineParser::LineParser(char sep, bool ignoreCR):
-  Separator(sep), IgnoreCR(ignoreCR), Log(0), Prefix(0), LineEnd('\0')
+   Log(0), Prefix(0), Separator(sep), LineEnd('\0'), IgnoreCR(ignoreCR)
 {
 }
 

+ 3 - 3
Source/cmProcessTools.h

@@ -51,12 +51,12 @@ public:
     /** Configure logging of lines as they are extracted.  */
     void SetLog(std::ostream* log, const char* prefix);
   protected:
-    char Separator;
-    bool IgnoreCR;
     std::ostream* Log;
     const char* Prefix;
-    char LineEnd;
     std::string Line;
+    char Separator;
+    char LineEnd;
+    bool IgnoreCR;
     virtual bool ProcessChunk(const char* data, int length);
 
     /** Implement in a subclass to process one line of input.  It