summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_convert_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/expression_convert_test.cpp')
-rw-r--r--src/mongo/db/pipeline/expression_convert_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression_convert_test.cpp b/src/mongo/db/pipeline/expression_convert_test.cpp
index 678c29b5b16..4bf42b9b8a5 100644
--- a/src/mongo/db/pipeline/expression_convert_test.cpp
+++ b/src/mongo/db/pipeline/expression_convert_test.cpp
@@ -276,7 +276,7 @@ TEST_F(ExpressionConvertTest, UnsupportedConversionShouldThrowUnlessOnErrorProvi
};
// Attempt all of the unsupported conversions listed above.
- for (auto conversion : unsupportedConversions) {
+ for (const auto& conversion : unsupportedConversions) {
auto inputValue = conversion.first;
auto targetTypeName = conversion.second;
@@ -299,7 +299,7 @@ TEST_F(ExpressionConvertTest, UnsupportedConversionShouldThrowUnlessOnErrorProvi
}
// Attempt them again, this time with an "onError" value.
- for (auto conversion : unsupportedConversions) {
+ for (const auto& conversion : unsupportedConversions) {
auto inputValue = conversion.first;
auto targetTypeName = conversion.second;