diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-04 02:20:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:30 (GMT) |
commit | 83a5e453f8c0dc0fc9b6bdee9723478aafefd0da (patch) | |
tree | 787734e3c75d2a75cafbb054195473c24582e03e /Source/cmCTest.h | |
parent | b26c70cc9a59de5b8ece8b00b67d571aaf6ee8f0 (diff) | |
download | CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.zip CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.gz CMake-83a5e453f8c0dc0fc9b6bdee9723478aafefd0da.tar.bz2 |
stringapi: Use strings for test names
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 6418f09..1eb0e01 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -70,8 +70,8 @@ public: { PartInfo(): Enabled(false) {} - void SetName(const char* name) { this->Name = name; } - const char* GetName() const { return this->Name.c_str(); } + void SetName(const std::string& name) { this->Name = name; } + const std::string& GetName() const { return this->Name; } void Enable() { this->Enabled = true; } operator bool() const { return this->Enabled; } @@ -349,7 +349,7 @@ public: //! Add overwrite to ctest configuration. // The format is key=value - void AddCTestConfigurationOverwrite(const char* encstr); + void AddCTestConfigurationOverwrite(const std::string& encstr); //! Create XML file that contains all the notes specified int GenerateNotesFile(const std::vector<cmStdString> &files); |