[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann
sbergman at redhat.com
Fri Mar 16 11:28:10 UTC 2018
vcl/osx/salmenu.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f7069aaa2aac8e120a21cba3905a513b194364ca
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Mar 16 12:27:36 2018 +0100
Simplify code
...avoiding loplugin:salunicodeliteral and loplugin:stringconstant
Change-Id: I560682ac87b24f47fc16a6ef17232c7fbc8c9099
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)
More information about the Libreoffice-commits
mailing list