mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cleanups to Json Object code.
* Replace Json::JsonException with std::logic_error. * Move two functions definitions to Object.cpp. * Fix include guards.
This commit is contained in:
@@ -45,7 +45,8 @@ std::string getHTTPHeaderTimestamp ()
|
||||
return std::string (buffer);
|
||||
}
|
||||
|
||||
void HTTPReply (int nStatus, std::string const& content, Json::Output output)
|
||||
void HTTPReply (
|
||||
int nStatus, std::string const& content, Json::Output const& output)
|
||||
{
|
||||
if (ShouldLog (lsTRACE, RPC))
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
namespace ripple {
|
||||
|
||||
void HTTPReply (int nStatus, std::string const& strMsg, Json::Output);
|
||||
void HTTPReply (int nStatus, std::string const& strMsg, Json::Output const&);
|
||||
|
||||
} // ripple
|
||||
|
||||
|
||||
Reference in New Issue
Block a user