diff options
author | Tad Marshall <tad@10gen.com> | 2012-08-02 05:55:24 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-08-31 11:44:37 -0400 |
commit | 15624a7a7e60ce1f50fc50f6cba54398b2af17d2 (patch) | |
tree | a6f830ee48e31ad7a0a69bd13fe97fa42c16b94e /src/mongo/bson/oid.cpp | |
parent | 1f8725142aee6cd4598ff360f638055e44557bec (diff) | |
download | mongo-15624a7a7e60ce1f50fc50f6cba54398b2af17d2.tar.gz |
SERVER-6908 Don't pass strings by value
Change lots of code to take <string> arguments by const ref instead
of by value; minor changes to surrounding code.
Diffstat (limited to 'src/mongo/bson/oid.cpp')
-rw-r--r-- | src/mongo/bson/oid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/oid.cpp b/src/mongo/bson/oid.cpp index 15bc15f6502..ef82e525422 100644 --- a/src/mongo/bson/oid.cpp +++ b/src/mongo/bson/oid.cpp @@ -157,7 +157,7 @@ namespace mongo { } } - void OID::init( string s ) { + void OID::init( const std::string& s ) { verify( s.size() == 24 ); const char *p = s.c_str(); for( int i = 0; i < 12; i++ ) { |