From a0656ec6fc2b41e65f1b40dbd64f546175e2762f Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 25 Mar 2021 09:53:33 +0300 Subject: const OUString -> const OUStringLiteral Mostly automated rewrite Change-Id: Ie020a083f898bc126b8fb039d4ecb2e687172da1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112965 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- cui/source/dialogs/hlmarkwn.cxx | 6 +++--- cui/source/tabpages/chardlg.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index cdc1039cab18..1f6a85494e82 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -291,9 +291,9 @@ int SvxHlinkDlgMarkWnd::FillTree( const uno::Reference< container::XNameAccess > const sal_Int32 nLinks = aNames.getLength(); const OUString* pNames = aNames.getConstArray(); - const OUString aProp_LinkDisplayName( "LinkDisplayName" ); - const OUString aProp_LinkTarget( "com.sun.star.document.LinkTarget" ); - const OUString aProp_LinkDisplayBitmap( "LinkDisplayBitmap" ); + static const OUStringLiteral aProp_LinkDisplayName( u"LinkDisplayName" ); + static const OUStringLiteral aProp_LinkTarget( u"com.sun.star.document.LinkTarget" ); + static const OUStringLiteral aProp_LinkDisplayBitmap( u"LinkDisplayBitmap" ); for( sal_Int32 i = 0; i < nLinks; i++ ) { uno::Any aAny; diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 836739d44f86..8c9c9825373d 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -2993,7 +2993,7 @@ bool SvxCharPositionPage::FillItemSet( SfxItemSet* rSet ) void SvxCharPositionPage::FillUserData() { - const OUString cTok( ";" ); + static const OUStringLiteral cTok( u";" ); OUString sUser = OUString::number( m_nSuperEsc ) + cTok + OUString::number( m_nSubEsc ) + cTok + -- cgit