summaryrefslogtreecommitdiff
path: root/src/mongo/util/md5.hpp
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2012-08-02 05:55:24 -0400
committerTad Marshall <tad@10gen.com>2012-08-31 11:44:37 -0400
commit15624a7a7e60ce1f50fc50f6cba54398b2af17d2 (patch)
treea6f830ee48e31ad7a0a69bd13fe97fa42c16b94e /src/mongo/util/md5.hpp
parent1f8725142aee6cd4598ff360f638055e44557bec (diff)
downloadmongo-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/util/md5.hpp')
-rw-r--r--src/mongo/util/md5.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/md5.hpp b/src/mongo/util/md5.hpp
index dc061719747..8974751054f 100644
--- a/src/mongo/util/md5.hpp
+++ b/src/mongo/util/md5.hpp
@@ -50,7 +50,7 @@ namespace mongo {
return digestToString( d );
}
- inline std::string md5simpledigest( string s ){
+ inline std::string md5simpledigest( const std::string& s ){
return md5simpledigest(s.data(), s.size());
}