install_dialog: Make use of [[nodiscard]] where applicable

Allows the compiler to warn against cases where the return value isn't
used (which would be a bug).
merge-requests/60/head
Lioncash 2020-09-23 13:22:01 +07:00
parent e107870bc8
commit aa35e51fcd
1 changed files with 2 additions and 2 deletions

@ -20,8 +20,8 @@ public:
explicit InstallDialog(QWidget* parent, const QStringList& files);
~InstallDialog() override;
QStringList GetFiles() const;
int GetMinimumWidth() const;
[[nodiscard]] QStringList GetFiles() const;
[[nodiscard]] int GetMinimumWidth() const;
private:
QListWidget* file_list;