Skip to content

Commit 23fe4bc

Browse files
committed
Fix build on Windows
1 parent c99e5bc commit 23fe4bc

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/System/Dialogs/MessageBox.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class MessageBox {
2525
Question,
2626
};
2727
static constexpr std::string_view Icon2Str[4] = {
28-
[static_cast<std::size_t>(Icon::Info)] = "info",
29-
[static_cast<std::size_t>(Icon::Warning)] = "warning",
30-
[static_cast<std::size_t>(Icon::Error)] = "error",
31-
[static_cast<std::size_t>(Icon::Question)] = "question"};
28+
"info",
29+
"warning",
30+
"error",
31+
"question"};
3232
/**
3333
* Message box button layout choices
3434
*/
@@ -39,10 +39,10 @@ class MessageBox {
3939
Yes_No_Cancel
4040
};
4141
static constexpr std::string_view Choice2Str[4] = {
42-
[static_cast<std::size_t>(Choice::Ok)] = "ok",
43-
[static_cast<std::size_t>(Choice::Ok_Cancel)] = "okcancel",
44-
[static_cast<std::size_t>(Choice::Yes_No)] = "yesno",
45-
[static_cast<std::size_t>(Choice::Yes_No_Cancel)] = "yesnocancel"};
42+
"ok",
43+
"okcancel",
44+
"yesno",
45+
"yesnocancel"};
4646

4747
/**
4848
* User Performed Action Result

src/System/Notification/Notification.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class Notification {
1919
Error
2020
};
2121
static constexpr std::string_view Icon2Str[3] = {
22-
[static_cast<std::size_t>(Icon::Info)] = "info",
23-
[static_cast<std::size_t>(Icon::Warning)] = "warning",
24-
[static_cast<std::size_t>(Icon::Error)] = "error"
22+
"info",
23+
"warning",
24+
"error"
2525
};
2626

2727
public:

0 commit comments

Comments
 (0)