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/db/queryoptimizer.h | |
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/db/queryoptimizer.h')
-rw-r--r-- | src/mongo/db/queryoptimizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/queryoptimizer.h b/src/mongo/db/queryoptimizer.h index 64a5e3a75a0..89c80241547 100644 --- a/src/mongo/db/queryoptimizer.h +++ b/src/mongo/db/queryoptimizer.h @@ -51,7 +51,7 @@ namespace mongo { shared_ptr<const ParsedQuery>(), const BSONObj &startKey = BSONObj(), const BSONObj &endKey = BSONObj(), - string special="" ); + const std::string& special="" ); /** Categorical classification of a QueryPlan's utility. */ enum Utility { @@ -120,7 +120,7 @@ namespace mongo { const BSONObj &originalQuery, const BSONObj &order, const shared_ptr<const ParsedQuery> &parsedQuery, - string special ); + const std::string& special ); void init( const FieldRangeSetPair *originalFrsp, const BSONObj &startKey, const BSONObj &endKey ); |