diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/db/pipeline/document_source.cpp | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/pipeline/document_source.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source.cpp | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/src/mongo/db/pipeline/document_source.cpp b/src/mongo/db/pipeline/document_source.cpp index baa3e486784..57d12a7c85c 100644 --- a/src/mongo/db/pipeline/document_source.cpp +++ b/src/mongo/db/pipeline/document_source.cpp @@ -34,42 +34,40 @@ namespace mongo { - using boost::intrusive_ptr; - using std::vector; +using boost::intrusive_ptr; +using std::vector; - DocumentSource::DocumentSource(const intrusive_ptr<ExpressionContext> &pCtx) - : pSource(NULL) - , pExpCtx(pCtx) - {} +DocumentSource::DocumentSource(const intrusive_ptr<ExpressionContext>& pCtx) + : pSource(NULL), pExpCtx(pCtx) {} - const char *DocumentSource::getSourceName() const { - static const char unknown[] = "[UNKNOWN]"; - return unknown; - } +const char* DocumentSource::getSourceName() const { + static const char unknown[] = "[UNKNOWN]"; + return unknown; +} - void DocumentSource::setSource(DocumentSource *pTheSource) { - verify(!pSource); - pSource = pTheSource; - } +void DocumentSource::setSource(DocumentSource* pTheSource) { + verify(!pSource); + pSource = pTheSource; +} - bool DocumentSource::coalesce(const intrusive_ptr<DocumentSource> &pNextSource) { - return false; - } +bool DocumentSource::coalesce(const intrusive_ptr<DocumentSource>& pNextSource) { + return false; +} - intrusive_ptr<DocumentSource> DocumentSource::optimize() { - return this; - } +intrusive_ptr<DocumentSource> DocumentSource::optimize() { + return this; +} - void DocumentSource::dispose() { - if ( pSource ) { - pSource->dispose(); - } +void DocumentSource::dispose() { + if (pSource) { + pSource->dispose(); } +} - void DocumentSource::serializeToArray(vector<Value>& array, bool explain) const { - Value entry = serialize(explain); - if (!entry.missing()) { - array.push_back(entry); - } +void DocumentSource::serializeToArray(vector<Value>& array, bool explain) const { + Value entry = serialize(explain); + if (!entry.missing()) { + array.push_back(entry); } } +} |