stringapi: Use strings for generated file stream names

This commit is contained in:
Ben Boeckel 2014-02-07 15:37:02 -05:00 committed by Brad King
parent 38c7544578
commit d76a6e08d0
2 changed files with 2 additions and 7 deletions

View File

@ -249,12 +249,7 @@ int cmGeneratedFileStreamBase::RenameFile(const char* oldname,
}
//----------------------------------------------------------------------------
void cmGeneratedFileStream::SetName(const char* fname)
void cmGeneratedFileStream::SetName(const std::string& fname)
{
if ( !fname )
{
this->Name = "";
return;
}
this->Name = fname;
}

View File

@ -140,7 +140,7 @@ public:
* Set name of the file that will hold the actual output. This method allows
* the output file to be changed during the use of cmGeneratedFileStream.
*/
void SetName(const char* fname);
void SetName(const std::string& fname);
private:
cmGeneratedFileStream(cmGeneratedFileStream const&); // not implemented