mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
only style changes
This commit is contained in:
@@ -35,15 +35,19 @@
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
|
||||
#ifndef MongoDB_BSONReader_INCLUDED
|
||||
#define MongoDB_BSONReader_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/MongoDB/MongoDB.h"
|
||||
#include "Poco/BinaryReader.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
namespace MongoDB {
|
||||
|
||||
|
||||
class MongoDB_API BSONReader
|
||||
/// Class for reading BSON from a Poco::BinaryReader
|
||||
{
|
||||
@@ -85,14 +89,8 @@ inline std::string BSONReader::readCString()
|
||||
_reader >> c;
|
||||
if ( _reader.good() )
|
||||
{
|
||||
if (c == 0x00)
|
||||
{
|
||||
return val;
|
||||
}
|
||||
else
|
||||
{
|
||||
val += c;
|
||||
}
|
||||
if (c == 0x00) return val;
|
||||
else val += c;
|
||||
}
|
||||
}
|
||||
return val;
|
||||
|
||||
Reference in New Issue
Block a user