aboutsummaryrefslogtreecommitdiff
path: root/src/core/frontend/applets/profile_select.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-06 11:26:53 -0500
committerGitHub <noreply@github.com>2022-12-06 11:26:53 -0500
commitd8534ea140a0e07fa010fe58fae068ed926c1dbc (patch)
tree176afc9e7d481b7b48f5a61a21b5184bf33cef62 /src/core/frontend/applets/profile_select.h
parentbbdb6d391e76845a9f2db57d05b2d0a85eeeba4e (diff)
parentfedd857054fb33521ee8e887a88d54cfc69c71fd (diff)
Merge pull request #9390 from lioncash/keyboard
applets: Extract callback types into aliases
Diffstat (limited to 'src/core/frontend/applets/profile_select.h')
-rw-r--r--src/core/frontend/applets/profile_select.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/frontend/applets/profile_select.h b/src/core/frontend/applets/profile_select.h
index 8d6ee5279..138429533 100644
--- a/src/core/frontend/applets/profile_select.h
+++ b/src/core/frontend/applets/profile_select.h
@@ -11,14 +11,16 @@ namespace Core::Frontend {
class ProfileSelectApplet {
public:
+ using SelectProfileCallback = std::function<void(std::optional<Common::UUID>)>;
+
virtual ~ProfileSelectApplet();
- virtual void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const = 0;
+ virtual void SelectProfile(SelectProfileCallback callback) const = 0;
};
class DefaultProfileSelectApplet final : public ProfileSelectApplet {
public:
- void SelectProfile(std::function<void(std::optional<Common::UUID>)> callback) const override;
+ void SelectProfile(SelectProfileCallback callback) const override;
};
} // namespace Core::Frontend