summaryrefslogtreecommitdiff
path: root/src/mongo/util/text.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-09-12 11:19:22 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-09-13 14:18:47 -0400
commit4ba934d3459b4ef7384ff55b5f2f0d20380930a1 (patch)
tree146bc9efaf6246fdba4bbe46c33089b24ef0ba06 /src/mongo/util/text.cpp
parente4a55dd9195127c6733d8f7269eea032feafd6ea (diff)
downloadmongo-4ba934d3459b4ef7384ff55b5f2f0d20380930a1.tar.gz
Make StringSplitter::join's first parameter be a const reference.
Diffstat (limited to 'src/mongo/util/text.cpp')
-rw-r--r--src/mongo/util/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/text.cpp b/src/mongo/util/text.cpp
index 59592b9a49d..9ecca38c18b 100644
--- a/src/mongo/util/text.cpp
+++ b/src/mongo/util/text.cpp
@@ -60,7 +60,7 @@ namespace mongo {
return l;
}
- string StringSplitter::join( vector<string>& l , const string& split ) {
+ string StringSplitter::join( const vector<string>& l , const string& split ) {
stringstream ss;
for ( unsigned i=0; i<l.size(); i++ ) {
if ( i > 0 )