summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bson_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bson_db.h')
-rw-r--r--src/mongo/bson/bson_db.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bson_db.h b/src/mongo/bson/bson_db.h
index c1f55482d16..bd0cdb44bc4 100644
--- a/src/mongo/bson/bson_db.h
+++ b/src/mongo/bson/bson_db.h
@@ -49,13 +49,13 @@ namespace mongo {
Append a timestamp element to the object being ebuilt.
@param time - in millis (but stored in seconds)
*/
- inline BSONObjBuilder& BSONObjBuilder::appendTimestamp( const StringData& fieldName , unsigned long long time , unsigned int inc ) {
+ inline BSONObjBuilder& BSONObjBuilder::appendTimestamp( StringData fieldName , unsigned long long time , unsigned int inc ) {
OpTime t( (unsigned) (time / 1000) , inc );
appendTimestamp( fieldName , t.asDate() );
return *this;
}
- inline BSONObjBuilder& BSONObjBuilder::append(const StringData& fieldName, OpTime optime) {
+ inline BSONObjBuilder& BSONObjBuilder::append(StringData fieldName, OpTime optime) {
appendTimestamp(fieldName, optime.asDate());
return *this;
}