diff options
Diffstat (limited to 'shell/source/unix/sysshell/recently_used_file_handler.cxx')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file_handler.cxx | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 4387e60142dc..21c467d0ed8f 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -148,19 +148,15 @@ namespace /* private */ { rtl::OStringBuffer aBuf; for (sal_uInt32 i = 0; i < text.length(); i++) { -# define MAP(a,b) case a: aBuf.append(b); break switch (text[i]) { - MAP ('&', "&"); - MAP ('<', "<"); - MAP ('>', ">"); - MAP ('\'', "'"); - MAP ('"', """); - default: - aBuf.append(text[i]); - break; + case '&': aBuf.append("&"); break; + case '<': aBuf.append("<"); break; + case '>': aBuf.append(">"); break; + case '\'': aBuf.append("'"); break; + case '"': aBuf.append("""); break; + default: aBuf.append(text[i]); break; } -# undef MAP } return aBuf.makeStringAndClear(); } |