summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionLexer.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-08 17:01:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:36 (GMT)
commitcfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0 (patch)
tree608adc93feb8296339b4cd035ddf34a10995af94 /Source/cmGeneratorExpressionLexer.cxx
parentf0ad6631adb7cd364e2bcf5e8738c697c902e0ad (diff)
downloadCMake-cfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0.zip
CMake-cfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0.tar.gz
CMake-cfc2cf9559eacbf45d04249ee1dd7f75bb0cdff0.tar.bz2
cmGeneratorExpression: Tokenize over strings
Diffstat (limited to 'Source/cmGeneratorExpressionLexer.cxx')
-rw-r--r--Source/cmGeneratorExpressionLexer.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmGeneratorExpressionLexer.cxx b/Source/cmGeneratorExpressionLexer.cxx
index 117a24e..1c83466 100644
--- a/Source/cmGeneratorExpressionLexer.cxx
+++ b/Source/cmGeneratorExpressionLexer.cxx
@@ -32,13 +32,11 @@ static void InsertText(const char *upto, const char *c,
//----------------------------------------------------------------------------
std::vector<cmGeneratorExpressionToken>
-cmGeneratorExpressionLexer::Tokenize(const char *input)
+cmGeneratorExpressionLexer::Tokenize(const std::string& input)
{
std::vector<cmGeneratorExpressionToken> result;
- if (!input)
- return result;
- const char *c = input;
+ const char *c = input.c_str();
const char *upto = c;
for ( ; *c; ++c)