summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/privilege_parser.h
diff options
context:
space:
mode:
authorTyler Brock <tyler.brock@gmail.com>2015-02-06 14:29:45 -0500
committerTyler Brock <tyler.brock@gmail.com>2015-02-06 16:37:35 -0500
commitaa9980b8c02de71c6918fba4aba9f22dd10eed01 (patch)
tree3ade9078069c7e1317a8b31c2e1fc427977d7abe /src/mongo/db/auth/privilege_parser.h
parent3a7675bb6fa110a10be307db3201bfb348cf41cf (diff)
downloadmongo-aa9980b8c02de71c6918fba4aba9f22dd10eed01.tar.gz
SERVER-16940 Change pass-by-const-ref of StringData to pass-by-value
Diffstat (limited to 'src/mongo/db/auth/privilege_parser.h')
-rw-r--r--src/mongo/db/auth/privilege_parser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/auth/privilege_parser.h b/src/mongo/db/auth/privilege_parser.h
index ac35ff0f114..66349199492 100644
--- a/src/mongo/db/auth/privilege_parser.h
+++ b/src/mongo/db/auth/privilege_parser.h
@@ -91,12 +91,12 @@ namespace mongo {
bool isClusterSet() const;
bool getCluster() const;
- void setDb(const StringData& db);
+ void setDb(StringData db);
void unsetDb();
bool isDbSet() const;
const std::string& getDb() const;
- void setCollection(const StringData& collection);
+ void setCollection(StringData collection);
void unsetCollection();
bool isCollectionSet() const;
const std::string& getCollection() const;