diff --git a/src/SerializedLedger.cpp b/src/SerializedLedger.cpp index b991a25790..beeb69dee5 100644 --- a/src/SerializedLedger.cpp +++ b/src/SerializedLedger.cpp @@ -1,6 +1,7 @@ - #include "SerializedLedger.h" +#include + SerializedLedgerEntry::SerializedLedgerEntry(SerializerIterator& sit, const uint256& index) : SerializedType("LedgerEntry"), mIndex(index) { @@ -47,12 +48,10 @@ std::string SerializedLedgerEntry::getFullText() const std::string SerializedLedgerEntry::getText() const { - std::string ret = "{"; - ret += mIndex.GetHex(); - ret += mVersion.getText(); - ret += mObject.getText(); - ret += "}"; - return ret; + return str(boost::format("{ %s, %s, %s }") + % mIndex.GetHex() + % mVersion.getText() + % mObject.getText()); } Json::Value SerializedLedgerEntry::getJson(int options) const