Simplify the saving & loading of a setting

Remove excessive usage of constexpr.
This commit is contained in:
Chocobo1
2018-05-18 14:24:54 +08:00
committed by sledgehammer999
parent 9ff17c8d9d
commit 551fc35439
2 changed files with 13 additions and 25 deletions

View File

@@ -51,15 +51,14 @@ namespace Ui
class PropListDelegate;
class TorrentContentFilterModel;
class TorrentFileGuard;
template <typename T> class CachedSettingValue;
class AddNewTorrentDialog : public QDialog
{
Q_OBJECT
public:
static constexpr int minPathHistoryLength = 0;
static constexpr int maxPathHistoryLength = 99;
static const int minPathHistoryLength = 0;
static const int maxPathHistoryLength = 99;
~AddNewTorrentDialog();
@@ -103,7 +102,6 @@ private:
void setupTreeview();
void setCommentText(const QString &str) const;
void setSavePath(const QString &newPath);
static CachedSettingValue<int> &savePathHistoryLengthSetting();
void showEvent(QShowEvent *event) override;