diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-01 13:10:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-01 13:25:08 +0000 |
commit | 9bdec0831afc45af45ea6d9350ef3372188b45cb (patch) | |
tree | 9f761fe2589569a7cd0fbafd6e5fcc4d350d4d64 /shell | |
parent | 49c7bc5af291dbf6b34bcea82c9c0513f65b308b (diff) |
loplugin:oncevar in sd..svgio
Change-Id: I58565460fcc3279c9771c6e1272d0af540b2c87c
Reviewed-on: https://gerrit.libreoffice.org/30459
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx index b15cc9b52a77..ee0e598fbd32 100644 --- a/shell/source/unix/sysshell/recently_used_file.cxx +++ b/shell/source/unix/sysshell/recently_used_file.cxx @@ -30,10 +30,9 @@ #include <fcntl.h> #include <unistd.h> -const OUStringLiteral RECENTLY_USED_FILE_NAME(".recently-used"); const char SLASH[] = "/"; -namespace /* private */ { +namespace { inline void ensure_final_slash(/*inout*/ OUString& path) { @@ -58,7 +57,7 @@ recently_used_file::recently_used_file() : OUString rufn = homedir; ensure_final_slash(rufn); - rufn += RECENTLY_USED_FILE_NAME; + rufn += ".recently-used"; OString tmp = OUStringToOString(rufn, osl_getThreadTextEncoding()); |