summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/path.h')
-rw-r--r--src/mongo/db/matcher/path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/path.h b/src/mongo/db/matcher/path.h
index 8bdf42b2a20..93f754d9884 100644
--- a/src/mongo/db/matcher/path.h
+++ b/src/mongo/db/matcher/path.h
@@ -42,7 +42,7 @@ namespace mongo {
class ElementPath {
public:
- Status init( const StringData& path );
+ Status init( StringData path );
void setTraverseNonleafArrays( bool b ) { _shouldTraverseNonleafArrays = b; }
void setTraverseLeafArray( bool b ) { _shouldTraverseLeafArray = b; }
@@ -149,7 +149,7 @@ namespace mongo {
bool more();
BSONElement next();
- bool isArrayOffsetMatch( const StringData& fieldName ) const;
+ bool isArrayOffsetMatch( StringData fieldName ) const;
bool nextEntireRest() const { return nextPieceOfPath.size() == restOfPath.size(); }
std::string restOfPath;