diff --git a/Source/cmCableData.cxx b/Source/cmCableData.cxx index ca9eda061..0c0058166 100644 --- a/Source/cmCableData.cxx +++ b/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(); } diff --git a/Source/cmCableData.h b/Source/cmCableData.h index 7dd5cc7c6..84223b4cf 100644 --- a/Source/cmCableData.h +++ b/Source/cmCableData.h @@ -79,22 +79,22 @@ private: * The cmCableCommand which created this instance of cmCableCommand. */ 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. */ 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. */