summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-25 09:53:33 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-25 10:06:26 +0100
commita0656ec6fc2b41e65f1b40dbd64f546175e2762f (patch)
treec0d3443a27d9dc10266760110e96b50cce46ef02 /svtools
parente9c6fd6b4d09ee59b6a86942cbf001f2ba9782e6 (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 'svtools')
-rw-r--r--svtools/source/config/extcolorcfg.cxx10
-rw-r--r--svtools/source/dialogs/colrdlg.cxx2
-rw-r--r--svtools/source/filter/exportdialog.cxx4
3 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index 1fa91e645dc2..45bf2a1f18fe 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -306,7 +306,7 @@ void ExtendedColorConfig_Impl::Load(const OUString& rScheme)
void ExtendedColorConfig_Impl::FillComponentColors(const uno::Sequence < OUString >& _rComponents,const TDisplayNames& _rDisplayNames)
{
- const OUString sColorEntries("/Entries");
+ static const OUStringLiteral sColorEntries(u"/Entries");
for(OUString const & component : _rComponents)
{
OUString sComponentName = component.copy(component.lastIndexOf('/')+1);
@@ -317,7 +317,7 @@ void ExtendedColorConfig_Impl::FillComponentColors(const uno::Sequence < OUStrin
uno::Sequence < OUString > aColorNames = GetPropertyNames(sEntry);
uno::Sequence < OUString > aDefaultColorNames = aColorNames;
- const OUString sColor("/Color");
+ static const OUStringLiteral sColor(u"/Color");
lcl_addString(aColorNames,sColor);
lcl_addString(aDefaultColorNames,u"/DefaultColor");
uno::Sequence< uno::Any > aColors = GetProperties( aColorNames );
@@ -383,11 +383,11 @@ void ExtendedColorConfig_Impl::ImplCommit()
{
if ( m_sLoadedScheme.isEmpty() )
return;
- const OUString sColorEntries("Entries");
- const OUString sColor("/Color");
+ static const OUStringLiteral sColorEntries(u"Entries");
+ static const OUStringLiteral sColor(u"/Color");
OUString sBase = "ExtendedColorScheme/ColorSchemes/"
+ m_sLoadedScheme;
- const OUString s_sSep("/");
+ static const OUStringLiteral s_sSep(u"/");
for (auto const& configValue : m_aConfigValues)
{
diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx
index ea448ffd86e2..dbd7bd143ce9 100644
--- a/svtools/source/dialogs/colrdlg.cxx
+++ b/svtools/source/dialogs/colrdlg.cxx
@@ -58,7 +58,7 @@ short SvColorDialog::Execute(weld::Window* pParent)
short ret = 0;
try
{
- const OUString sColor( "Color" );
+ static const OUStringLiteral sColor( u"Color" );
Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
Reference<css::awt::XWindow> xParent;
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index 5f062bf14803..86fd9fdfeff3 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -192,8 +192,8 @@ uno::Sequence< beans::PropertyValue > ExportDialog::GetFilterData( bool bUpdateC
pFilterOptions = new FilterConfigItem( &aFilterData );
}
- const OUString sLogicalWidth("LogicalWidth");
- const OUString sLogicalHeight("LogicalHeight");
+ static const OUStringLiteral sLogicalWidth(u"LogicalWidth");
+ static const OUStringLiteral sLogicalHeight(u"LogicalHeight");
if ( mbIsPixelFormat )
{
pFilterOptions->WriteInt32("PixelWidth", maSize.Width );