diff options
Diffstat (limited to 'src/mongo/db/pipeline/builder.h')
-rwxr-xr-x | src/mongo/db/pipeline/builder.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/builder.h b/src/mongo/db/pipeline/builder.h index e6a68a72a32..5e4f5e48e38 100755 --- a/src/mongo/db/pipeline/builder.h +++ b/src/mongo/db/pipeline/builder.h @@ -44,7 +44,7 @@ namespace mongo { virtual void append(int i) = 0; virtual void append(long long ll) = 0; virtual void append(double d) = 0; - virtual void append(const std::string& s) = 0; + virtual void append(StringData s) = 0; virtual void append(const OID &o) = 0; virtual void append(const Date_t &d) = 0; virtual void append(const OpTime& ot) = 0; @@ -62,18 +62,18 @@ namespace mongo { virtual void append(int i); virtual void append(long long ll); virtual void append(double d); - virtual void append(const std::string& s); + virtual void append(StringData s); virtual void append(const OID &o); virtual void append(const Date_t &d); virtual void append(const OpTime& ot); virtual void append(BSONObjBuilder *pDone); virtual void append(BSONArrayBuilder *pDone); - BuilderObj(BSONObjBuilder *pBuilder, const std::string& fieldName); + BuilderObj(BSONObjBuilder *pBuilder, StringData fieldName); private: BSONObjBuilder *pBuilder; - string fieldName; + StringData fieldName; }; class BuilderArray : @@ -86,7 +86,7 @@ namespace mongo { virtual void append(int i); virtual void append(long long ll); virtual void append(double d); - virtual void append(const std::string& s); + virtual void append(StringData s); virtual void append(const OID &o); virtual void append(const Date_t &d); virtual void append(const OpTime& ot); |