-
- if (winHelp && (convertMode == TEX_RTF))
- wxStrcat(buf, _T("WinHelp RTF"));
- else if (!winHelp && (convertMode == TEX_RTF))
- wxStrcat(buf, _T("linear RTF"));
- else if (convertMode == TEX_HTML) wxStrcat(buf, _T("HTML"));
- else if (convertMode == TEX_XLP) wxStrcat(buf, _T("XLP"));
- wxStrcat(buf, _T(" mode."));
+ switch (convertMode)
+ {
+ case TEX_RTF:
+ wxStrcat(buf, (winHelp) ? _T("WinHelp RTF") : _T("linear RTF"));
+ break;
+ case TEX_HTML:
+ wxStrcat(buf, _T("HTML"));
+ break;
+ case TEX_XLP:
+ wxStrcat(buf, _T("XLP"));
+ break;
+ default:
+ wxStrcat(buf, _T("unknown"));
+ break;
+ }
+ wxStrcat(buf, _T(" mode."));