mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
consistent bracing style
This commit is contained in:
parent
6717457390
commit
8e86dca256
8 changed files with 97 additions and 36 deletions
|
|
@ -34,7 +34,9 @@ QString ClientModel::getAddress()
|
|||
if (CWalletDB("r").ReadDefaultKey(vchPubKey))
|
||||
{
|
||||
return QString::fromStdString(PubKeyToAddress(vchPubKey));
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
}
|
||||
|
|
@ -116,9 +118,13 @@ ClientModel::StatusCode ClientModel::sendCoins(const QString &payTo, qint64 payA
|
|||
|
||||
std::string strError = SendMoney(scriptPubKey, payAmount, wtx, true);
|
||||
if (strError == "")
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
else if (strError == "ABORTED")
|
||||
{
|
||||
return Aborted;
|
||||
}
|
||||
else
|
||||
{
|
||||
emit error(tr("Sending..."), QString::fromStdString(strError));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue