summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/compound_expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/compound_expression.cpp')
-rw-r--r--src/mbgl/style/expression/compound_expression.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/style/expression/compound_expression.cpp b/src/mbgl/style/expression/compound_expression.cpp
index b95dabfc84..2477fe7917 100644
--- a/src/mbgl/style/expression/compound_expression.cpp
+++ b/src/mbgl/style/expression/compound_expression.cpp
@@ -368,7 +368,7 @@ const auto& hasContextCompoundExpression() {
};
}
- return params.feature->getValue(key) ? true : false;
+ return static_cast<bool>(params.feature->getValue(key));
});
return signature;
}
@@ -996,7 +996,7 @@ std::string expectedTypesError(const Definitions& definitions,
std::string actualTypes;
for (const auto& arg : args) {
- if (actualTypes.size() > 0) {
+ if (!actualTypes.empty()) {
actualTypes += ", ";
}
actualTypes += toString(arg->getType());
@@ -1043,7 +1043,7 @@ static ParseResult createCompoundExpression(const Definitions& definitions,
}
}
- if (signatureContext.getErrors().size() == 0) {
+ if (signatureContext.getErrors().empty()) {
return ParseResult(std::make_unique<CompoundExpression>(*signature, std::move(args)));
}
}