From edabc770aa612b16490cefb24a349adb3ef95e7f Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 12 Oct 2012 15:08:56 -0700 Subject: [PATCH] Cosmetic. --- src/Application.cpp | 3 +-- src/SerializedObject.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index 11b19895b..236f46ebf 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -91,7 +91,7 @@ void Application::run() if (theConfig.START_UP == Config::FRESH) { Log(lsINFO) << "Starting new Ledger"; - startNewLedger(); + startNewLedger(); } else if (theConfig.START_UP == Config::LOAD) { @@ -153,7 +153,6 @@ void Application::run() mConnectionPool.start(); - if (theConfig.RUN_STANDALONE) { Log(lsWARNING) << "Running in standalone mode"; diff --git a/src/SerializedObject.cpp b/src/SerializedObject.cpp index 8e6e9df60..dbaa6e1e8 100644 --- a/src/SerializedObject.cpp +++ b/src/SerializedObject.cpp @@ -887,7 +887,7 @@ std::auto_ptr STObject::parseJson(const Json::Value& object, SField::r case STI_UINT8: if (value.isString()) data.push_back(new STUInt8(field, lexical_cast_st(value.asString()))); - else if (value.isInt()) + else if (value.isInt()) { if (value.asInt() < 0 || value.asInt() > 255) throw std::runtime_error("value out of rand");