Browse Source

ERR: Re-ordered declaration of members v. order of initialization on the constructor to match each other.

Brad King 24 years ago
parent
commit
553457a4a4
2 changed files with 11 additions and 11 deletions
  1. 3 3
      Source/cmCableData.cxx
  2. 8 8
      Source/cmCableData.h

+ 3 - 3
Source/cmCableData.cxx

@@ -25,12 +25,12 @@
 cmCableData::cmCableData(const cmCableCommand* owner,
                          const std::string& configurationFile):
   m_Owner(owner),
+  m_OutputFileName(configurationFile),
+  m_OutputFile(configurationFile.c_str()),
   m_Indentation(0),
   m_Package(NULL),
   m_PackageNamespaceDepth(0),
-  m_PackageClassIndex(-1),
-  m_OutputFileName(configurationFile),
-  m_OutputFile(m_OutputFileName.c_str())
+  m_PackageClassIndex(-1)
 {
   this->InitializeOutputFile();
 }

+ 8 - 8
Source/cmCableData.h

@@ -79,22 +79,22 @@ private:
    * The cmCableCommand which created this instance of cmCableCommand.
    */
   const cmCableCommand* m_Owner;
-  
-  /**
-   * Current indentation for output.
-   */
-  Indentation m_Indentation;
-  
+
   /**
    * The name of the output file opened as m_OutputFile.
    */
-  std::string m_OutputFileName;
+  std::string m_OutputFileName;  
   
   /**
    * The output file to which the configuration is written.
    */
   std::ofstream m_OutputFile;
-
+  
+  /**
+   * Current indentation for output.
+   */
+  Indentation m_Indentation;
+  
   /**
    * The stack of namespaces.
    */