Refactor: Remove using namespace <xxx> from rpc/

This commit is contained in:
Karl-Johan Alm
2017-01-04 13:22:19 +09:00
parent 6996e066b5
commit f3c264e9a6
8 changed files with 151 additions and 167 deletions

View File

@@ -13,8 +13,6 @@
#include <boost/algorithm/string/case_conv.hpp> // for to_lower()
#include <univalue.h>
using namespace std;
class CRPCConvertParam
{
public:
@@ -168,7 +166,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal)
UniValue jVal;
if (!jVal.read(std::string("[")+strVal+std::string("]")) ||
!jVal.isArray() || jVal.size()!=1)
throw runtime_error(string("Error parsing JSON:")+strVal);
throw std::runtime_error(std::string("Error parsing JSON:")+strVal);
return jVal[0];
}