From 75afc2a24f109855a0d89f6cb7908fda83bbd2f8 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Sat, 26 Oct 2019 19:25:36 -0700 Subject: [PATCH] Fix warnings --- src/connection.cpp | 2 +- src/controller.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index f1217d1..9354dd4 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -67,7 +67,7 @@ void ConnectionLoader::doAutoConnect() { auto connection = makeConnection(config); // After the lib is initialized, try to do get info - connection->doRPC("info", "", [=](auto reply) { + connection->doRPC("info", "", [=](auto) { // If success, set the connection main->logger->write("Connection is online."); diff --git a/src/controller.cpp b/src/controller.cpp index 92328f6..996690b 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -255,7 +255,7 @@ void Controller::updateUI(bool anyUnconfirmed) { // Function to process reply of the listunspent and z_listunspent API calls, used below. void Controller::processUnspent(const json& reply, QMap* balancesMap, QList* unspentOutputs) { - auto processFn = [=](const json& array) -> bool { + auto processFn = [=](const json& array) { for (auto& it : array) { QString qsAddr = QString::fromStdString(it["address"]); int block = it["created_in_block"].get(); @@ -361,10 +361,10 @@ void Controller::refreshTransactions() { txdata.push_back(TransactionItem{ "Sent", - it["datetime"].get(), + it["datetime"].get(), address, QString::fromStdString(it["txid"]), - model->getLatestBlock() - it["block_height"].get(), + model->getLatestBlock() - it["block_height"].get(), items }); } else { @@ -380,10 +380,10 @@ void Controller::refreshTransactions() { TransactionItem tx{ "Receive", - it["datetime"].get(), + it["datetime"].get(), address, QString::fromStdString(it["txid"]), - model->getLatestBlock() - it["block_height"].get() + 1, + model->getLatestBlock() - it["block_height"].get() + 1, items };