summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-23 13:22:01 -0400
committerLioncash <mathew1800@gmail.com>2020-09-23 13:22:04 -0400
commitaa35e51fcd4527220ce6d793cf6736bbac25aea5 (patch)
tree296ee59682efb5e8d130932bd92b6f7e004a229f /src
parente107870bc831e251478e41dcd4d517aa5febd05d (diff)
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 'src')
-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:
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;