summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-21 14:23:23 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-16 06:30:09 +0000
commit127f70d66ac32b7a4ec818adaf1bdccb71865ee5 (patch)
treea020d2002c2eea81484297421f0fbe3ee84c2db0 /shell
parentce95e39f8e952159844e9dc04a1df402bb103634 (diff)
new loplugin to check for static OUStrings
that are better declared as OUStringLiteral Change-Id: Ifb5d9a12bb31a68641940bec16971a8181a46567 Reviewed-on: https://gerrit.libreoffice.org/27377 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/sysshell/recently_used_file.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx
index 5a9b4643081b..b15cc9b52a77 100644
--- a/shell/source/unix/sysshell/recently_used_file.cxx
+++ b/shell/source/unix/sysshell/recently_used_file.cxx
@@ -30,15 +30,15 @@
#include <fcntl.h>
#include <unistd.h>
-const OUString RECENTLY_USED_FILE_NAME(".recently-used");
-const OUString SLASH("/");
+const OUStringLiteral RECENTLY_USED_FILE_NAME(".recently-used");
+const char SLASH[] = "/";
namespace /* private */ {
inline void ensure_final_slash(/*inout*/ OUString& path)
{
if (!path.isEmpty() &&
- (SLASH.pData->buffer[0] != path.pData->buffer[path.getLength() - 1]))
+ (SLASH[0] != path.pData->buffer[path.getLength() - 1]))
path += SLASH;
}