summaryrefslogtreecommitdiffstats
path: root/Source/cmIDEFlagTable.h
diff options
context:
space:
mode:
authorStephan Szabo <stephan.szabo@sony.com>2018-11-20 18:09:57 (GMT)
committerStephan Szabo <stephan.szabo@sony.com>2018-11-28 15:43:25 (GMT)
commit8279302110ee6eb09a16e33b3bf8f8ad4ee13b73 (patch)
tree8d99ec1e7fac777833a6a4421e12728fe2a15586 /Source/cmIDEFlagTable.h
parent139b39985f26d4517072d49715c3dfd50a0d7001 (diff)
downloadCMake-8279302110ee6eb09a16e33b3bf8f8ad4ee13b73.zip
CMake-8279302110ee6eb09a16e33b3bf8f8ad4ee13b73.tar.gz
CMake-8279302110ee6eb09a16e33b3bf8f8ad4ee13b73.tar.bz2
Convert cmIDEFlagTable to use owned strings
Convert from char* to std::string in flag tables. Change termination condition from nullptr to empty string in command flag. Update tables to store empty strings.
Diffstat (limited to 'Source/cmIDEFlagTable.h')
-rw-r--r--Source/cmIDEFlagTable.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmIDEFlagTable.h b/Source/cmIDEFlagTable.h
index 152e293..28d5d53 100644
--- a/Source/cmIDEFlagTable.h
+++ b/Source/cmIDEFlagTable.h
@@ -3,13 +3,15 @@
#ifndef cmIDEFlagTable_h
#define cmIDEFlagTable_h
+#include <string>
+
// This is a table mapping XML tag IDE names to command line options
struct cmIDEFlagTable
{
- const char* IDEName; // name used in the IDE xml file
- const char* commandFlag; // command line flag
- const char* comment; // comment
- const char* value; // string value
+ std::string IDEName; // name used in the IDE xml file
+ std::string commandFlag; // command line flag
+ std::string comment; // comment
+ std::string value; // string value
unsigned int special; // flags for special handling requests
enum
{