Use a typedef for monetary values
This commit is contained in:
committed by
Mark Friedenbach
parent
64cfaf891f
commit
a372168e77
@@ -29,7 +29,7 @@
|
||||
#include <QTreeWidgetItem>
|
||||
|
||||
using namespace std;
|
||||
QList<qint64> CoinControlDialog::payAmounts;
|
||||
QList<CAmount> CoinControlDialog::payAmounts;
|
||||
CCoinControl* CoinControlDialog::coinControl = new CCoinControl();
|
||||
|
||||
CoinControlDialog::CoinControlDialog(QWidget *parent) :
|
||||
@@ -443,10 +443,10 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog)
|
||||
return;
|
||||
|
||||
// nPayAmount
|
||||
qint64 nPayAmount = 0;
|
||||
CAmount nPayAmount = 0;
|
||||
bool fDust = false;
|
||||
CMutableTransaction txDummy;
|
||||
foreach(const qint64 &amount, CoinControlDialog::payAmounts)
|
||||
foreach(const CAmount &amount, CoinControlDialog::payAmounts)
|
||||
{
|
||||
nPayAmount += amount;
|
||||
|
||||
@@ -460,10 +460,10 @@ void CoinControlDialog::updateLabels(WalletModel *model, QDialog* dialog)
|
||||
}
|
||||
|
||||
QString sPriorityLabel = tr("none");
|
||||
int64_t nAmount = 0;
|
||||
int64_t nPayFee = 0;
|
||||
int64_t nAfterFee = 0;
|
||||
int64_t nChange = 0;
|
||||
CAmount nAmount = 0;
|
||||
CAmount nPayFee = 0;
|
||||
CAmount nAfterFee = 0;
|
||||
CAmount nChange = 0;
|
||||
unsigned int nBytes = 0;
|
||||
unsigned int nBytesInputs = 0;
|
||||
double dPriority = 0;
|
||||
@@ -684,7 +684,7 @@ void CoinControlDialog::updateView()
|
||||
itemWalletAddress->setText(COLUMN_ADDRESS, sWalletAddress);
|
||||
}
|
||||
|
||||
int64_t nSum = 0;
|
||||
CAmount nSum = 0;
|
||||
double dPrioritySum = 0;
|
||||
int nChildren = 0;
|
||||
int nInputSum = 0;
|
||||
|
||||
Reference in New Issue
Block a user