indentation

This commit is contained in:
aleks-f 2013-02-20 17:08:44 -06:00
parent 6943505634
commit 66a56a944f
3 changed files with 10 additions and 10 deletions

View File

@ -583,8 +583,8 @@ bool Parser::readRow(bool firstCall)
token = nextToken();
if ( token->is(Token::SEPARATOR_TOKEN)
&& token->asChar() == ':')
if (token->is(Token::SEPARATOR_TOKEN)
&& token->asChar() == ':')
{
readValue(nextToken());
@ -638,8 +638,8 @@ void Parser::readValue(const Token* token)
#if defined(POCO_HAVE_INT64)
Int64 value = token->asInteger64();
// if number is 32-bit, then handle as such
if ( value > std::numeric_limits<int>::max()
|| value < std::numeric_limits<int>::min())
if (value > std::numeric_limits<int>::max()
|| value < std::numeric_limits<int>::min())
{
_handler->value(value);
}

View File

@ -122,8 +122,8 @@ Var Query::find(const std::string& path) const
}
}
if ( !result.isEmpty()
&& !indexes.empty() )
if (!result.isEmpty()
&& !indexes.empty() )
{
for(std::vector<int>::iterator it = indexes.begin(); it != indexes.end(); ++it )
{

View File

@ -200,7 +200,7 @@ void JSONTest::testNumber64Property()
std::string json = "{ \"test\" : 5000000000000000 }";
Parser parser;
Var result;
try
{
DefaultHandler handler;
@ -213,13 +213,13 @@ void JSONTest::testNumber64Property()
std::cout << jsone.message() << std::endl;
assert(false);
}
assert(result.type() == typeid(Object::Ptr));
Object::Ptr object = result.extract<Object::Ptr>();
Var test = object->get("test");
assert(test.isInteger());
Poco::Int64 value = test;
Poco::Int64 value = test;
assert(value == 5000000000000000);
}