scripted-diff: Use getInt<T> over get_int/get_int64
-BEGIN VERIFY SCRIPT- sed -i 's|\<get_int64\>|getInt<int64_t>|g' $(git grep -l get_int ':(exclude)src/univalue') sed -i 's|\<get_int\>|getInt<int>|g' $(git grep -l get_int ':(exclude)src/univalue') -END VERIFY SCRIPT-
This commit is contained in:
32 files changed
+114
-114
No files matched your search
@@ -457,7 +457,7 @@ void RPCExecutor::request(const QString &command, const WalletModel* wallet_mode
|
||||
{
|
||||
try // Nice formatting for standard-format error
|
||||
{
|
||||
int code = find_value(objError, "code").get_int();
|
||||
int code = find_value(objError, "code").getInt<int>();
|
||||
std::string message = find_value(objError, "message").get_str();
|
||||
Q_EMIT reply(RPCConsole::CMD_ERROR, QString::fromStdString(message) + " (code " + QString::number(code) + ")");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user