diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-12-05 18:56:47 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-12-05 19:06:04 -0500 |
| commit | d8da9a2afdff6b3aa2f8c2ac80083353fcaab8b3 (patch) | |
| tree | 2d4961867fba4f10b6bc2a6695a660ef79cdd9d3 /src/core/frontend/applets/error.cpp | |
| parent | 2b40cdf04f52c4cb4612703c6bd78fd972f029d9 (diff) | |
applets/error: Use aliases for callbacks
Diffstat (limited to 'src/core/frontend/applets/error.cpp')
| -rw-r--r-- | src/core/frontend/applets/error.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/applets/error.cpp b/src/core/frontend/applets/error.cpp index f8b961098..69c2b2b4d 100644 --- a/src/core/frontend/applets/error.cpp +++ b/src/core/frontend/applets/error.cpp @@ -8,13 +8,13 @@ namespace Core::Frontend { ErrorApplet::~ErrorApplet() = default; -void DefaultErrorApplet::ShowError(Result error, std::function<void()> finished) const { +void DefaultErrorApplet::ShowError(Result error, FinishedCallback finished) const { LOG_CRITICAL(Service_Fatal, "Application requested error display: {:04}-{:04} (raw={:08X})", error.module.Value(), error.description.Value(), error.raw); } void DefaultErrorApplet::ShowErrorWithTimestamp(Result error, std::chrono::seconds time, - std::function<void()> finished) const { + FinishedCallback finished) const { LOG_CRITICAL( Service_Fatal, "Application requested error display: {:04X}-{:04X} (raw={:08X}) with timestamp={:016X}", @@ -23,7 +23,7 @@ void DefaultErrorApplet::ShowErrorWithTimestamp(Result error, std::chrono::secon void DefaultErrorApplet::ShowCustomErrorText(Result error, std::string main_text, std::string detail_text, - std::function<void()> finished) const { + FinishedCallback finished) const { LOG_CRITICAL(Service_Fatal, "Application requested custom error with error_code={:04X}-{:04X} (raw={:08X})", error.module.Value(), error.description.Value(), error.raw); |
