Browse Source

Clang compiler

pull/14/head
Aditya Kulkarni 5 years ago
parent
commit
3afcf43202
  1. 2
      src/controller.cpp
  2. 2
      src/recurring.cpp
  3. 2
      src/websockets.cpp

2
src/controller.cpp

@ -334,7 +334,7 @@ void Controller::refreshTransactions() {
for (auto& it : reply.get<json::array_t>()) {
QString address;
qint64 total_amount;
qint64 total_amount = 0;
QList<TransactionItemDetail> items;
// First, check if there's outgoing metadata

2
src/recurring.cpp

@ -460,7 +460,7 @@ void Recurring::processMultiplePending(RecurringPaymentInfo rpi, MainWindow* mai
void Recurring::executeRecurringPayment(MainWindow* main, RecurringPaymentInfo rpi, QList<int> paymentNumbers) {
// Amount is in USD or ZEC?
auto amt = rpi.amt;
qint64 amt = Settings::getAmountFromUserDecimalStr(QString::number(rpi.amt, 'f', 8));
if (rpi.currency == "USD") {
// If there is no price, then fail the payment
if (Settings::getInstance()->getZECPrice() == 0) {

2
src/websockets.cpp

@ -658,7 +658,7 @@ void AppDataServer::processSendTx(QJsonObject sendTx, MainWindow* mainwindow, st
tx.fee = Settings::getMinerFee();
// Find a from address that has at least the sending amout
double amt = sendTx["amount"].toString().toDouble();
qint64 amt = Settings::getAmountFromUserDecimalStr(sendTx["amount"].toString());
auto allBalances = mainwindow->getRPC()->getModel()->getAllBalances();
QList<QPair<QString, double>> bals;
for (auto i : allBalances.keys()) {

Loading…
Cancel
Save