summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_geo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_geo.h')
-rw-r--r--src/mongo/db/matcher/expression_geo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h
index 4dbf1bb65bf..d8d2a0a105a 100644
--- a/src/mongo/db/matcher/expression_geo.h
+++ b/src/mongo/db/matcher/expression_geo.h
@@ -83,7 +83,7 @@ namespace mongo {
/**
* Takes ownership of the passed-in GeoExpression.
*/
- Status init( const StringData& path, const GeoExpression* query, const BSONObj& rawObj );
+ Status init( StringData path, const GeoExpression* query, const BSONObj& rawObj );
virtual bool matchesSingleElement( const BSONElement& e ) const;
@@ -152,7 +152,7 @@ namespace mongo {
GeoNearMatchExpression() : LeafMatchExpression( GEO_NEAR ){}
virtual ~GeoNearMatchExpression(){}
- Status init( const StringData& path, const GeoNearExpression* query, const BSONObj& rawObj );
+ Status init( StringData path, const GeoNearExpression* query, const BSONObj& rawObj );
// This shouldn't be called and as such will crash. GeoNear always requires an index.
virtual bool matchesSingleElement( const BSONElement& e ) const;