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:
parent
b8daadc929
commit
52e0b6886e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user