0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-58067 fix XCode12 compile warning

This commit is contained in:
Benety Goh 2021-08-02 06:38:59 -04:00 committed by Evergreen Agent
parent b8daadc929
commit 52e0b6886e

View File

@ -162,7 +162,7 @@ void _extractAllElementsAlongBucketPath(const BSONObj& obj,
}
case 2: {
// Unbucketing magic happens here.
for (const BSONElement e : obj) {
for (const BSONElement& e : obj) {
std::string subPath = e.fieldName();
if (!path.empty()) {
subPath.append("." + path);