summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobjbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.cpp')
-rw-r--r--src/mongo/bson/bsonobjbuilder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.cpp b/src/mongo/bson/bsonobjbuilder.cpp
index 31f9636aea0..c52ffbdd607 100644
--- a/src/mongo/bson/bsonobjbuilder.cpp
+++ b/src/mongo/bson/bsonobjbuilder.cpp
@@ -40,7 +40,7 @@ namespace mongo {
using std::string;
- void BSONObjBuilder::appendMinForType( const StringData& fieldName , int t ) {
+ void BSONObjBuilder::appendMinForType( StringData fieldName , int t ) {
switch ( t ) {
// Shared canonical types
@@ -97,7 +97,7 @@ namespace mongo {
uassert( 10061 , "type not supported for appendMinElementForType" , false );
}
- void BSONObjBuilder::appendMaxForType( const StringData& fieldName , int t ) {
+ void BSONObjBuilder::appendMaxForType( StringData fieldName , int t ) {
switch ( t ) {
// Shared canonical types
@@ -150,7 +150,7 @@ namespace mongo {
}
- bool BSONObjBuilder::appendAsNumber( const StringData& fieldName , const string& data ) {
+ bool BSONObjBuilder::appendAsNumber( StringData fieldName , const string& data ) {
if ( data.size() == 0 || data == "-" || data == ".")
return false;
@@ -195,7 +195,7 @@ namespace mongo {
}
}
- BSONObjBuilder& BSONObjBuilder::appendDate(const StringData& fieldName, Date_t dt) {
+ BSONObjBuilder& BSONObjBuilder::appendDate(StringData fieldName, Date_t dt) {
/* easy to pass a time_t to this and get a bad result. thus this warning. */
#if defined(_DEBUG) && defined(MONGO_EXPOSE_MACROS)
if( dt > 0 && dt <= 0xffffffff ) {
@@ -256,7 +256,7 @@ namespace mongo {
return BSONObjIterator( s , e );
}
- bool BSONObjBuilder::hasField( const StringData& name ) const {
+ bool BSONObjBuilder::hasField( StringData name ) const {
BSONObjIterator i = iterator();
while ( i.more() )
if ( name == i.next().fieldName() )