- switch(which)
- {
- case wxICON_INFORMATION:
- return wxIcon(info_xpm);
- break;
- case wxICON_HAND:
- return wxIcon(error_xpm);
- break;
- case wxICON_QUESTION:
- return wxIcon(question_xpm);
- break;
- case wxICON_EXCLAMATION:
- return wxIcon(warning_xpm);
- break;
- default:
- wxFAIL_MSG("requested non existent standard icon");
- return wxIcon(error_xpm);
- break;
- }
+ switch(which)
+ {
+ case wxICON_INFORMATION:
+ return wxIcon(info_xpm);
+
+ case wxICON_QUESTION:
+ return wxIcon(question_xpm);
+
+ case wxICON_EXCLAMATION:
+ return wxIcon(warning_xpm);
+
+ default:
+ wxFAIL_MSG(wxT("requested non existent standard icon"));
+ // still fall through
+
+ case wxICON_HAND:
+ return wxIcon(error_xpm);
+ }