Clang compiler
This commit is contained in:
@@ -334,7 +334,7 @@ void Controller::refreshTransactions() {
|
|||||||
|
|
||||||
for (auto& it : reply.get<json::array_t>()) {
|
for (auto& it : reply.get<json::array_t>()) {
|
||||||
QString address;
|
QString address;
|
||||||
qint64 total_amount;
|
qint64 total_amount = 0;
|
||||||
QList<TransactionItemDetail> items;
|
QList<TransactionItemDetail> items;
|
||||||
|
|
||||||
// First, check if there's outgoing metadata
|
// First, check if there's outgoing metadata
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ void Recurring::processMultiplePending(RecurringPaymentInfo rpi, MainWindow* mai
|
|||||||
|
|
||||||
void Recurring::executeRecurringPayment(MainWindow* main, RecurringPaymentInfo rpi, QList<int> paymentNumbers) {
|
void Recurring::executeRecurringPayment(MainWindow* main, RecurringPaymentInfo rpi, QList<int> paymentNumbers) {
|
||||||
// Amount is in USD or ZEC?
|
// 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 (rpi.currency == "USD") {
|
||||||
// If there is no price, then fail the payment
|
// If there is no price, then fail the payment
|
||||||
if (Settings::getInstance()->getZECPrice() == 0) {
|
if (Settings::getInstance()->getZECPrice() == 0) {
|
||||||
|
|||||||
@@ -658,7 +658,7 @@ void AppDataServer::processSendTx(QJsonObject sendTx, MainWindow* mainwindow, st
|
|||||||
tx.fee = Settings::getMinerFee();
|
tx.fee = Settings::getMinerFee();
|
||||||
|
|
||||||
// Find a from address that has at least the sending amout
|
// 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();
|
auto allBalances = mainwindow->getRPC()->getModel()->getAllBalances();
|
||||||
QList<QPair<QString, double>> bals;
|
QList<QPair<QString, double>> bals;
|
||||||
for (auto i : allBalances.keys()) {
|
for (auto i : allBalances.keys()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user