summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:37:02 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:33 (GMT)
commitd76a6e08d06ef0fa6d52f67e88b0cfe4d96f24d1 (patch)
tree3327133f8e58322de32564710879a25ceafa4d9a /Source/cmGeneratedFileStream.cxx
parent38c7544578f4154dfaaa0a55b118b79b11ec6ae1 (diff)
downloadCMake-d76a6e08d06ef0fa6d52f67e88b0cfe4d96f24d1.zip
CMake-d76a6e08d06ef0fa6d52f67e88b0cfe4d96f24d1.tar.gz
CMake-d76a6e08d06ef0fa6d52f67e88b0cfe4d96f24d1.tar.bz2
stringapi: Use strings for generated file stream names
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index 34efc15..78ad4b2 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -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;
}