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:
Tom Ritchford
2015-01-29 13:07:19 -05:00
parent e9b7003cf5
commit 0825bd7076
11 changed files with 117 additions and 102 deletions

View File

@@ -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))
{

View File

@@ -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