summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-03-16 12:27:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-03-16 12:27:36 +0100
commitf7069aaa2aac8e120a21cba3905a513b194364ca (patch)
tree384b17bdd268deda8bccd9dc7bfae7a43db77212 /vcl/osx
parent494f565506013015d9ce4a3010eb3b211557d70f (diff)
Simplify code
...avoiding loplugin:salunicodeliteral and loplugin:stringconstant Change-Id: I560682ac87b24f47fc16a6ef17232c7fbc8c9099
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salmenu.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 922a6035d37b..9122f54c456c 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -653,8 +653,8 @@ void AquaSalMenu::SetItemText( unsigned /*i_nPos*/, SalMenuItem* i_pSalMenuItem,
}
}
- if (aText.endsWith("..."))
- aText = aText.copy(0, aText.getLength()-3) + OUString(sal_Unicode(0x2026));
+ if (aText.endsWith("...", &aText))
+ aText += u"\u2026";
NSString* pString = CreateNSString( aText );
if (pString)