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/dbtests/dbtests.cpp | |
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/dbtests/dbtests.cpp')
-rw-r--r-- | src/mongo/dbtests/dbtests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp index 6e419a6cc4a..4391aa1b2a9 100644 --- a/src/mongo/dbtests/dbtests.cpp +++ b/src/mongo/dbtests/dbtests.cpp @@ -56,7 +56,7 @@ namespace dbtests { const std::string default_test_dbpath = "/tmp/unittest"; Status createIndex(OperationContext* txn, - const StringData &ns, + StringData ns, const BSONObj& keys, bool unique) { BSONObjBuilder specBuilder; @@ -70,7 +70,7 @@ namespace dbtests { return createIndexFromSpec(txn, ns, specBuilder.done()); } - Status createIndexFromSpec(OperationContext* txn, const StringData& ns, const BSONObj& spec) { + Status createIndexFromSpec(OperationContext* txn, StringData ns, const BSONObj& spec) { AutoGetOrCreateDb autoDb(txn, nsToDatabaseSubstring(ns), MODE_X); Collection* coll; { |