From 873eb21b4eb446b0e00a4751b7ce8ca55e840e58 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Fri, 16 Nov 2018 12:57:20 -0800 Subject: [PATCH] cleanup --- src/settings.cpp | 4 ++-- src/settings.h | 56 ++++++++++++++++++++++++------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index d50208c..7955482 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -155,7 +155,7 @@ QString Settings::getZECUSDDisplayFormat(double bal) { const QString Settings::txidStatusMessage = QString("Tx submitted (right click to copy) txid:"); -const QString Settings::getTokenName() { +QString Settings::getTokenName() { if (Settings::getInstance()->isTestnet()) { return "TAZ"; } else { @@ -163,7 +163,7 @@ const QString Settings::getTokenName() { } } -const QString Settings::getDonationAddr(bool sapling) { +QString Settings::getDonationAddr(bool sapling) { if (Settings::getInstance()->isTestnet()) if (sapling) return "ztestsapling1wn6889vznyu42wzmkakl2effhllhpe4azhu696edg2x6me4kfsnmqwpglaxzs7tmqsq7kudemp5"; diff --git a/src/settings.h b/src/settings.h index 768b4c1..42614d3 100644 --- a/src/settings.h +++ b/src/settings.h @@ -19,38 +19,38 @@ public: static Settings* init(); static Settings* getInstance(); - Config getSettings(); - void saveSettings(const QString& host, const QString& port, const QString& username, const QString& password); - - bool isTestnet(); - void setTestnet(bool isTestnet); - - bool isSaplingAddress(QString addr); - bool isSproutAddress(QString addr); - bool isZAddress(QString addr); - - bool isSyncing(); - void setSyncing(bool syncing); + Config getSettings(); + void saveSettings(const QString& host, const QString& port, const QString& username, const QString& password); + + bool isTestnet(); + void setTestnet(bool isTestnet); + + bool isSaplingAddress(QString addr); + bool isSproutAddress(QString addr); + bool isZAddress(QString addr); + + bool isSyncing(); + void setSyncing(bool syncing); QString getExecName() { return _executable; } void setExecName(QString name) { _executable = name; } - void setUseEmbedded(bool r) { _useEmbedded = r; } - bool useEmbedded() { return _useEmbedded; } - - int getBlockNumber(); - void setBlockNumber(int number); - - bool getSaveZtxs(); - void setSaveZtxs(bool save); - - bool getAllowCustomFees(); - void setAllowCustomFees(bool allow); + void setUseEmbedded(bool r) { _useEmbedded = r; } + bool useEmbedded() { return _useEmbedded; } - bool isSaplingActive(); + int getBlockNumber(); + void setBlockNumber(int number); + + bool getSaveZtxs(); + void setSaveZtxs(bool save); + + bool getAllowCustomFees(); + void setAllowCustomFees(bool allow); + + bool isSaplingActive(); - void setUsingZcashConf(QString confLocation); - const QString& getZcashdConfLocation() { return _confLocation; } + void setUsingZcashConf(QString confLocation); + const QString& getZcashdConfLocation() { return _confLocation; } void setZECPrice(double p) { zecPrice = p; } double getZECPrice(); @@ -65,8 +65,8 @@ public: static QString getZECDisplayFormat(double bal); static QString getZECUSDDisplayFormat(double bal); - static const QString getTokenName(); - static const QString getDonationAddr(bool sapling); + static QString getTokenName(); + static QString getDonationAddr(bool sapling); static double getMinerFee(); static double getZboardAmount();