diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-25 09:53:33 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-25 10:06:26 +0100 |
commit | a0656ec6fc2b41e65f1b40dbd64f546175e2762f (patch) | |
tree | c0d3443a27d9dc10266760110e96b50cce46ef02 /sdext | |
parent | e9c6fd6b4d09ee59b6a86942cbf001f2ba9782e6 (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/informationdialog.cxx | 6 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterController.cxx | 6 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterSlideSorter.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/minimizer/informationdialog.cxx b/sdext/source/minimizer/informationdialog.cxx index 736802475167..4f823eaee75d 100644 --- a/sdext/source/minimizer/informationdialog.cxx +++ b/sdext/source/minimizer/informationdialog.cxx @@ -259,7 +259,7 @@ void InformationDialog::InitDialog() aURL.Complete = maSaveAsURL; xURLTransformer->parseSmart( aURL, OUString() ); - const OUString sFileProtocol( "file:///" ); + static const OUStringLiteral sFileProtocol( u"file:///" ); aPresentationURL.Complete = sFileProtocol + aURL.Name; aTitle = xURLTransformer->getPresentation( aPresentationURL, false ); @@ -268,8 +268,8 @@ void InformationDialog::InitDialog() } OUString aInfoString( getString( eInfoString ) ); - const OUString aOldSizePlaceholder( "%OLDFILESIZE" ); - const OUString aNewSizePlaceholder( "%NEWFILESIZE" ); + static const OUStringLiteral aOldSizePlaceholder( u"%OLDFILESIZE" ); + static const OUStringLiteral aNewSizePlaceholder( u"%NEWFILESIZE" ); const OUString aTitlePlaceholder( !aTitle.isEmpty() ? OUString("%TITLE" ) : OUString("'%TITLE'") ); diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index 58f423def0aa..e1ddf110c895 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -317,9 +317,9 @@ void PresenterController::UpdatePaneTitles() return; // Get placeholders and their values. - const OUString sCurrentSlideNumberPlaceholder ("CURRENT_SLIDE_NUMBER"); - const OUString sCurrentSlideNamePlaceholder ("CURRENT_SLIDE_NAME"); - const OUString sSlideCountPlaceholder ("SLIDE_COUNT"); + static const OUStringLiteral sCurrentSlideNumberPlaceholder (u"CURRENT_SLIDE_NUMBER"); + static const OUStringLiteral sCurrentSlideNamePlaceholder (u"CURRENT_SLIDE_NAME"); + static const OUStringLiteral sSlideCountPlaceholder (u"SLIDE_COUNT"); // Get string for slide count. OUString sSlideCount ("---"); diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx index 1f8adc555693..493e33a39ce9 100644 --- a/sdext/source/presenter/PresenterSlideSorter.cxx +++ b/sdext/source/presenter/PresenterSlideSorter.cxx @@ -1605,7 +1605,7 @@ OUString PresenterSlideSorter::MouseOverManager::GetFittingText ( double nBestWidth (0); OUString sBestCandidate; sal_Int32 nLength (round(rsText.getLength() * nMaximalWidth / nTextWidth)); - const OUString sEllipses ("..."); + static const OUStringLiteral sEllipses (u"..."); while (true) { const OUString sCandidate (rsText.subView(0,nLength) + sEllipses); |