only style changes

This commit is contained in:
aleks-f
2013-03-17 13:34:36 -05:00
parent 95e713045e
commit 3d16ce00a2
35 changed files with 190 additions and 111 deletions

View File

@@ -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;