- switch(which)
- {
- case wxICON_INFORMATION:
- return wxIcon("wxICON_INFO");
- break;
- case wxICON_HAND:
- return wxIcon("wxICON_ERROR");
- break;
- case wxICON_QUESTION:
- return wxIcon("wxICON_QUESTION");
- break;
- case wxICON_EXCLAMATION:
- return wxIcon("wxICON_WARNING");
- break;
- default:
- wxFAIL_MSG("requested non existent standard icon");
- return wxIcon("wxICON_ERROR");
- break;
- }
+ switch(which)
+ {
+ case wxICON_INFORMATION:
+ return wxIcon("wxICON_INFO");
+
+ case wxICON_QUESTION:
+ return wxIcon("wxICON_QUESTION");
+
+ case wxICON_EXCLAMATION:
+ return wxIcon("wxICON_WARNING");
+
+ default:
+ wxFAIL_MSG(_T("requested non existent standard icon"));
+ // still fall through
+
+ case wxICON_HAND:
+ return wxIcon("wxICON_ERROR");
+ }