ENH: Changed WriteConfiguration back to const because it doesn't need to report errors anymore.

This commit is contained in:
Brad King 2001-05-01 17:35:23 -04:00
parent f7d33c41cf
commit 45e9d19c6c
8 changed files with 10 additions and 14 deletions

View File

@ -48,7 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Write the CABLE configuration code to define this InstantiationSet.
* This includes the "class" keyword to do class template instantiations.
*/
bool cmCableInstantiateClassCommand::WriteConfiguration()
void cmCableInstantiateClassCommand::WriteConfiguration() const
{
std::ostream& os = m_CableData->GetOutputStream();
cmCableData::Indentation indent = m_CableData->GetIndentation();
@ -71,6 +71,4 @@ bool cmCableInstantiateClassCommand::WriteConfiguration()
os << "</Element>" << std::endl;
}
os << indent << "</InstantiationSet>" << std::endl;
return true;
}

View File

@ -88,7 +88,7 @@ public:
"template classes (not functions, operators, etc).";
}
virtual bool WriteConfiguration();
virtual void WriteConfiguration() const;
cmTypeMacro(cmCableInstantiateClassCommand, cmCableInstantiateCommand);
protected:

View File

@ -47,7 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/**
* Write the CABLE configuration code to define this InstantiationSet.
*/
bool cmCableInstantiateCommand::WriteConfiguration()
void cmCableInstantiateCommand::WriteConfiguration() const
{
std::ostream& os = m_CableData->GetOutputStream();
cmCableData::Indentation indent = m_CableData->GetIndentation();
@ -70,6 +70,4 @@ bool cmCableInstantiateCommand::WriteConfiguration()
os << "</Element>" << std::endl;
}
os << indent << "</InstantiationSet>" << std::endl;
return true;
}

View File

@ -87,7 +87,7 @@ public:
"template non-classes (functions, operators, etc).";
}
virtual bool WriteConfiguration();
virtual void WriteConfiguration() const;
cmTypeMacro(cmCableInstantiateCommand, cmCablePackageCommand);
protected:

View File

@ -61,5 +61,7 @@ bool cmCablePackageEntryCommand::Invoke(std::vector<std::string>& args)
}
// Write this command's configuration.
return this->WriteConfiguration();
this->WriteConfiguration();
return true;
}

View File

@ -67,7 +67,7 @@ public:
cmTypeMacro(cmCablePackageEntryCommand, cmCableCommand);
virtual bool WriteConfiguration() =0;
virtual void WriteConfiguration() const =0;
protected:
typedef std::vector<std::string> Entries;

View File

@ -70,7 +70,7 @@ void cmCableSourceFilesCommand::FinalPass()
* Write the CABLE configuration code to indicate header dependencies for
* a package.
*/
bool cmCableSourceFilesCommand::WriteConfiguration()
void cmCableSourceFilesCommand::WriteConfiguration() const
{
std::ostream& os = m_CableData->GetOutputStream();
cmCableData::Indentation indent = m_CableData->GetIndentation();
@ -102,8 +102,6 @@ bool cmCableSourceFilesCommand::WriteConfiguration()
}
}
os << indent << "</Headers>" << std::endl;
return true;
}

View File

@ -92,7 +92,7 @@ public:
"Generates a Package's Headers block in the CABLE configuration.";
}
virtual bool WriteConfiguration();
virtual void WriteConfiguration() const;
bool SourceFileExists(const std::string&) const;
cmTypeMacro(cmCableSourceFilesCommand, cmCableCommand);