summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/qt_error.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-12-05 18:56:47 -0500
committerLioncash <mathew1800@gmail.com>2022-12-05 19:06:04 -0500
commitd8da9a2afdff6b3aa2f8c2ac80083353fcaab8b3 (patch)
tree2d4961867fba4f10b6bc2a6695a660ef79cdd9d3 /src/yuzu/applets/qt_error.h
parent2b40cdf04f52c4cb4612703c6bd78fd972f029d9 (diff)
applets/error: Use aliases for callbacks
Diffstat (limited to 'src/yuzu/applets/qt_error.h')
-rw-r--r--src/yuzu/applets/qt_error.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/applets/qt_error.h b/src/yuzu/applets/qt_error.h
index eb4107c7e..e4e174721 100644
--- a/src/yuzu/applets/qt_error.h
+++ b/src/yuzu/applets/qt_error.h
@@ -16,11 +16,11 @@ public:
explicit QtErrorDisplay(GMainWindow& parent);
~QtErrorDisplay() override;
- void ShowError(Result error, std::function<void()> finished) const override;
+ void ShowError(Result error, FinishedCallback finished) const override;
void ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
- std::function<void()> finished) const override;
+ FinishedCallback finished) const override;
void ShowCustomErrorText(Result error, std::string dialog_text, std::string fullscreen_text,
- std::function<void()> finished) const override;
+ FinishedCallback finished) const override;
signals:
void MainWindowDisplayError(QString error_code, QString error_text) const;
@@ -28,5 +28,5 @@ signals:
private:
void MainWindowFinishedError();
- mutable std::function<void()> callback;
+ mutable FinishedCallback callback;
};