mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Clean up getText for SerializedLedgerEntry.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user