summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:35:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:33 (GMT)
commit38c7544578f4154dfaaa0a55b118b79b11ec6ae1 (patch)
tree577fff435eaabbf552fa73fa2c143694cb9caec8 /Source/cmDocumentation.cxx
parentdddbd2c7faf0a606200d5b03c549d348eceb87d7 (diff)
downloadCMake-38c7544578f4154dfaaa0a55b118b79b11ec6ae1.zip
CMake-38c7544578f4154dfaaa0a55b118b79b11ec6ae1.tar.gz
CMake-38c7544578f4154dfaaa0a55b118b79b11ec6ae1.tar.bz2
stringapi: Use strings for documentation names
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 9c27fc1..96b5f04 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -477,9 +477,9 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv,
}
//----------------------------------------------------------------------------
-void cmDocumentation::SetName(const char* name)
+void cmDocumentation::SetName(const std::string& name)
{
- this->NameString = name?name:"";
+ this->NameString = name;
}
//----------------------------------------------------------------------------