File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
2727public:
You can’t perform that action at this time.
0 commit comments