diff options
author | U-tellus\cwestin <cwestin@10gen.com> | 2012-01-10 14:28:56 -0800 |
---|---|---|
committer | U-tellus\cwestin <cwestin@10gen.com> | 2012-01-10 14:52:59 -0800 |
commit | 8427b4eb0180862bd4530fdd46b76ef933ae4087 (patch) | |
tree | c24bc4bcae2e3369a2c9ff208de7bf9677eda779 /src/mongo/db/pipeline/document_source_limit.cpp | |
parent | 4294f8eb2c6c1c6747de5b93667b5dc8ec654209 (diff) | |
download | mongo-8427b4eb0180862bd4530fdd46b76ef933ae4087.tar.gz |
fixed emacs to remove tabs from files before writing; removed tabs
Diffstat (limited to 'src/mongo/db/pipeline/document_source_limit.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_limit.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/db/pipeline/document_source_limit.cpp b/src/mongo/db/pipeline/document_source_limit.cpp index a73d4da2005..fd977cc126a 100644 --- a/src/mongo/db/pipeline/document_source_limit.cpp +++ b/src/mongo/db/pipeline/document_source_limit.cpp @@ -55,28 +55,28 @@ namespace mongo { } void DocumentSourceLimit::sourceToBson(BSONObjBuilder *pBuilder) const { - pBuilder->append("$limit", limit); + pBuilder->append("$limit", limit); } intrusive_ptr<DocumentSourceLimit> DocumentSourceLimit::create( - const intrusive_ptr<ExpressionContext> &pCtx) { + const intrusive_ptr<ExpressionContext> &pCtx) { intrusive_ptr<DocumentSourceLimit> pSource( new DocumentSourceLimit(pCtx)); return pSource; } intrusive_ptr<DocumentSource> DocumentSourceLimit::createFromBson( - BSONElement *pBsonElement, - const intrusive_ptr<ExpressionContext> &pCtx) { - uassert(15957, "the limit must be specified as a number", - pBsonElement->isNumber()); + BSONElement *pBsonElement, + const intrusive_ptr<ExpressionContext> &pCtx) { + uassert(15957, "the limit must be specified as a number", + pBsonElement->isNumber()); intrusive_ptr<DocumentSourceLimit> pLimit( - DocumentSourceLimit::create(pCtx)); + DocumentSourceLimit::create(pCtx)); pLimit->limit = (int)pBsonElement->numberLong(); - uassert(15958, "the limit must be positive", - pLimit->limit > 0); + uassert(15958, "the limit must be positive", + pLimit->limit > 0); return pLimit; } |