summaryrefslogtreecommitdiff
path: root/shell/source/unix/sysshell/recently_used_file_handler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/unix/sysshell/recently_used_file_handler.cxx')
-rw-r--r--shell/source/unix/sysshell/recently_used_file_handler.cxx16
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 ('&', "&amp;");
- MAP ('<', "&lt;");
- MAP ('>', "&gt;");
- MAP ('\'', "&apos;");
- MAP ('"', "&quot;");
- default:
- aBuf.append(text[i]);
- break;
+ case '&': aBuf.append("&amp;"); break;
+ case '<': aBuf.append("&lt;"); break;
+ case '>': aBuf.append("&gt;"); break;
+ case '\'': aBuf.append("&apos;"); break;
+ case '"': aBuf.append("&quot;"); break;
+ default: aBuf.append(text[i]); break;
}
-# undef MAP
}
return aBuf.makeStringAndClear();
}