Common/MsgHandler: Convert type aliases over to using
Same thing, nicer to read.
This commit is contained in:
1 parent
027c17558f
commit
d1475f6d59
1 file changed
+2
-2
@@ -15,8 +15,8 @@ enum class MsgType
|
||||
Critical
|
||||
};
|
||||
|
||||
typedef bool (*MsgAlertHandler)(const char* caption, const char* text, bool yes_no, MsgType style);
|
||||
typedef std::string (*StringTranslator)(const char* text);
|
||||
using MsgAlertHandler = bool (*)(const char* caption, const char* text, bool yes_no, MsgType style);
|
||||
using StringTranslator = std::string (*)(const char* text);
|
||||
|
||||
void RegisterMsgAlertHandler(MsgAlertHandler handler);
|
||||
void RegisterStringTranslator(StringTranslator translator);
|
||||
|
||||
Reference in new issue
Block a user