Clean up getText for SerializedLedgerEntry.

This commit is contained in:
Arthur Britto
2012-06-05 14:13:32 -07:00
parent 8e88b1cd8a
commit 1f7abd6a94

View File

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