mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
MongoDB: fixes for style and consistency
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
// Package: MongoDB
|
||||
// Module: QueryRequest
|
||||
//
|
||||
// Implementation of the QueryRequest class.
|
||||
//
|
||||
// Copyright (c) 2012, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
@@ -23,8 +21,8 @@ namespace Poco {
|
||||
namespace MongoDB {
|
||||
|
||||
|
||||
QueryRequest::QueryRequest(const std::string& collectionName, QueryRequest::Flags flags)
|
||||
: RequestMessage(MessageHeader::Query),
|
||||
QueryRequest::QueryRequest(const std::string& collectionName, QueryRequest::Flags flags):
|
||||
RequestMessage(MessageHeader::OP_QUERY),
|
||||
_flags(flags),
|
||||
_fullCollectionName(collectionName),
|
||||
_numberToSkip(0),
|
||||
@@ -48,7 +46,7 @@ void QueryRequest::buildRequest(BinaryWriter& writer)
|
||||
writer << _numberToReturn;
|
||||
_selector.write(writer);
|
||||
|
||||
if ( ! _returnFieldSelector.empty() )
|
||||
if (!_returnFieldSelector.empty())
|
||||
{
|
||||
_returnFieldSelector.write(writer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user