summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-21 09:39:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-21 11:05:28 +0200
commit13ae66c0eb0ab03ac4a43c52dd2359fbaa7f5867 (patch)
tree48240e6ac377af8dfc4abde33d5b1c3ae1743127 /fpicker
parent414b93285f081cd1a0bfb0847fbd3943bf50093a (diff)
loplugin:stringstatic (clang-cl)
Change-Id: I024c7437e876459e22a6f541405b87ac13e7dc99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101135 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/WinImplHelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/fpicker/source/win32/WinImplHelper.cxx b/fpicker/source/win32/WinImplHelper.cxx
index ab1dcbe007a9..5d6e20d92319 100644
--- a/fpicker/source/win32/WinImplHelper.cxx
+++ b/fpicker/source/win32/WinImplHelper.cxx
@@ -30,9 +30,7 @@ using ::com::sun::star::uno::XInterface;
using ::com::sun::star::uno::Any;
using ::com::sun::star::uno::Sequence;
-const OUString TILDE( "~" );
const sal_Unicode TILDE_SIGN = L'~';
-const OUString AMPERSAND( "&" );
const sal_Unicode AMPERSAND_SIGN = L'&';
// OS NAME Platform Major Minor
@@ -113,7 +111,7 @@ OUString SOfficeToWindowsLabel( const OUString& aSOLabel )
{
OUString aWinLabel = aSOLabel;
- if ( (aWinLabel.indexOf( TILDE ) > -1) || (aWinLabel.indexOf( AMPERSAND ) > -1) )
+ if ( (aWinLabel.indexOf( TILDE_SIGN ) > -1) || (aWinLabel.indexOf( AMPERSAND_SIGN ) > -1) )
{
sal_Int32 nStrLen = aWinLabel.getLength( );
@@ -142,7 +140,7 @@ OUString WindowsToSOfficeLabel( const OUString& aWinLabel )
{
OUString aSOLabel = aWinLabel;
- if ( (aSOLabel.indexOf( TILDE ) > -1) || (aSOLabel.indexOf( AMPERSAND ) > -1) )
+ if ( (aSOLabel.indexOf( TILDE_SIGN ) > -1) || (aSOLabel.indexOf( AMPERSAND_SIGN ) > -1) )
{
sal_Int32 nStrLen = aSOLabel.getLength( );