summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-09-23 13:22:01 -0400
committerGravatar Lioncash2020-09-23 13:22:04 -0400
commitaa35e51fcd4527220ce6d793cf6736bbac25aea5 (patch)
tree296ee59682efb5e8d130932bd92b6f7e004a229f /src
parentinstall_dialog: Remove unused function prototype (diff)
downloadyuzu-aa35e51fcd4527220ce6d793cf6736bbac25aea5.tar.gz
yuzu-aa35e51fcd4527220ce6d793cf6736bbac25aea5.tar.xz
yuzu-aa35e51fcd4527220ce6d793cf6736bbac25aea5.zip
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).
Diffstat (limited to '')
-rw-r--r--src/yuzu/install_dialog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/install_dialog.h b/src/yuzu/install_dialog.h
index 4293b3722..68e03fe4e 100644
--- a/src/yuzu/install_dialog.h
+++ b/src/yuzu/install_dialog.h
@@ -20,8 +20,8 @@ public:
20 explicit InstallDialog(QWidget* parent, const QStringList& files); 20 explicit InstallDialog(QWidget* parent, const QStringList& files);
21 ~InstallDialog() override; 21 ~InstallDialog() override;
22 22
23 QStringList GetFiles() const; 23 [[nodiscard]] QStringList GetFiles() const;
24 int GetMinimumWidth() const; 24 [[nodiscard]] int GetMinimumWidth() const;
25 25
26private: 26private:
27 QListWidget* file_list; 27 QListWidget* file_list;