summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-04 02:20:33 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:30 (GMT)
commit83a5e453f8c0dc0fc9b6bdee9723478aafefd0da (patch)
tree787734e3c75d2a75cafbb054195473c24582e03e /Source/cmTest.cxx
parentb26c70cc9a59de5b8ece8b00b67d571aaf6ee8f0 (diff)
downloadCMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.zip
CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.gz
CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.bz2
stringapi: Use strings for test names
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r--Source/cmTest.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx
index 4ff71ac..28a7bb1 100644
--- a/Source/cmTest.cxx
+++ b/Source/cmTest.cxx
@@ -38,12 +38,8 @@ cmListFileBacktrace const& cmTest::GetBacktrace() const
}
//----------------------------------------------------------------------------
-void cmTest::SetName(const char* name)
+void cmTest::SetName(const std::string& name)
{
- if ( !name )
- {
- name = "";
- }
this->Name = name;
}