diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-04 09:21:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-09 12:26:56 (GMT) |
commit | 7aa99270fa77a13e8e710adc0098385403d6cf7a (patch) | |
tree | 1afca1209345e8dea4198a8610a71090b78f1c78 /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | 78e54b99fed1bd4c899360c9df779205ce6b29ba (diff) | |
download | CMake-7aa99270fa77a13e8e710adc0098385403d6cf7a.zip CMake-7aa99270fa77a13e8e710adc0098385403d6cf7a.tar.gz CMake-7aa99270fa77a13e8e710adc0098385403d6cf7a.tar.bz2 |
GenEx: Don't use std::vector::at(int).
It might not exist with GCC 2.9.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 93895b3..92e2052 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -173,7 +173,7 @@ static const struct StrEqualNode : public cmGeneratorExpressionNode const GeneratorExpressionContent *, cmGeneratorExpressionDAGChecker *) const { - return *parameters.begin() == parameters.at(1) ? "1" : "0"; + return *parameters.begin() == parameters[1] ? "1" : "0"; } } strEqualNode; @@ -281,7 +281,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode std::string propertyName = *parameters.begin(); if (parameters.size() == 2) { - if (parameters.begin()->empty() && parameters.at(1).empty()) + if (parameters.begin()->empty() && parameters[1].empty()) { reportError(context, content->GetOriginalExpression(), "$<TARGET_PROPERTY:tgt,prop> expression requires a non-empty " @@ -297,7 +297,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode } std::string targetName = parameters.front(); - propertyName = parameters.at(1); + propertyName = parameters[1]; if (!nameValidator.find(targetName.c_str())) { if (!nameValidator.find(propertyName.c_str())) |