diff options
author | Tyler Brock <tyler.brock@gmail.com> | 2015-02-06 14:29:45 -0500 |
---|---|---|
committer | Tyler Brock <tyler.brock@gmail.com> | 2015-02-06 16:37:35 -0500 |
commit | aa9980b8c02de71c6918fba4aba9f22dd10eed01 (patch) | |
tree | 3ade9078069c7e1317a8b31c2e1fc427977d7abe /src/mongo/bson/mutable/element-inl.h | |
parent | 3a7675bb6fa110a10be307db3201bfb348cf41cf (diff) | |
download | mongo-aa9980b8c02de71c6918fba4aba9f22dd10eed01.tar.gz |
SERVER-16940 Change pass-by-const-ref of StringData to pass-by-value
Diffstat (limited to 'src/mongo/bson/mutable/element-inl.h')
-rw-r--r-- | src/mongo/bson/mutable/element-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/mutable/element-inl.h b/src/mongo/bson/mutable/element-inl.h index a6dedccea02..ca8a5147b42 100644 --- a/src/mongo/bson/mutable/element-inl.h +++ b/src/mongo/bson/mutable/element-inl.h @@ -34,7 +34,7 @@ namespace mutablebson { return findNthChild(n); } - inline Element Element::operator[](const StringData& name) const { + inline Element Element::operator[](StringData name) const { return findFirstChildNamed(name); } |