diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2021-02-12 07:45:05 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-12 13:15:02 +0000 |
commit | 399ce1d4f498b815290cd0f16c881e0e22ebeda8 (patch) | |
tree | 121f733a6f33f8a381eeff6a209bf061dc2b1cf0 | |
parent | afbcab389e6281ba29950c5c85f8ba9d5d72ab5c (diff) | |
download | mongo-399ce1d4f498b815290cd0f16c881e0e22ebeda8.tar.gz |
SERVER-54388 Fix variable shadowing in document_source_set_window_fields.cpp
-rw-r--r-- | src/mongo/db/pipeline/document_source_set_window_fields.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_set_window_fields.cpp b/src/mongo/db/pipeline/document_source_set_window_fields.cpp index b63a63803da..fcaa29465e9 100644 --- a/src/mongo/db/pipeline/document_source_set_window_fields.cpp +++ b/src/mongo/db/pipeline/document_source_set_window_fields.cpp @@ -84,8 +84,8 @@ list<intrusive_ptr<DocumentSource>> document_source_set_window_fields::createFro } std::vector<WindowFunctionStatement> outputFields; - for (auto&& elem : spec.getOutput()) { - outputFields.push_back(WindowFunctionStatement::parse(elem, sortBy, expCtx.get())); + for (auto&& outputElem : spec.getOutput()) { + outputFields.push_back(WindowFunctionStatement::parse(outputElem, sortBy, expCtx.get())); } return create( |