diff options
Diffstat (limited to 'src/mongo/s/type_database.h')
-rw-r--r-- | src/mongo/s/type_database.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/type_database.h b/src/mongo/s/type_database.h index 28b68005b32..e94d35686c8 100644 --- a/src/mongo/s/type_database.h +++ b/src/mongo/s/type_database.h @@ -120,7 +120,7 @@ namespace mongo { // // Mandatory Fields - void setName(const StringData& name) { + void setName(StringData name) { _name = name.toString(); _isNameSet = true; } @@ -135,7 +135,7 @@ namespace mongo { return _name; } - void setPrimary(const StringData& primary) { + void setPrimary(StringData primary) { _primary = primary.toString(); _isPrimarySet = true; } |