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

This commit is contained in:
Brad King 2001-03-16 11:14:08 -05:00
parent 2d26d0be68
commit 553457a4a4
2 changed files with 13 additions and 13 deletions

View File

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

View File

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