summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-21 13:38:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-22 14:14:48 +0200
commit7fb43031b7eec663768f5a4e78e60da86379df41 (patch)
tree026dd9b5a522aec8534763af074fc4a28ccfa58d /svx/source/accessibility
parent61ea11e51ceeaec7bf197a076cf40d96bd65ad07 (diff)
loplugin:constantparam
Change-Id: Ibfe70492683ff3ec208cee95d8a11155ec54f690 Reviewed-on: https://gerrit.libreoffice.org/81314 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleControlShape.cxx4
-rw-r--r--svx/source/accessibility/DescriptionGenerator.cxx20
2 files changed, 5 insertions, 19 deletions
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx
index 9342f26efe7a..9b36c9b51263 100644
--- a/svx/source/accessibility/AccessibleControlShape.cxx
+++ b/svx/source/accessibility/AccessibleControlShape.cxx
@@ -334,8 +334,8 @@ OUString
if ( sDesc.isEmpty() )
{ // no -> use the default
aDG.Initialize (STR_ObjNameSingulUno);
- aDG.AddProperty ("ControlBackground", DescriptionGenerator::PropertyType::Color, "");
- aDG.AddProperty ( "ControlBorder", DescriptionGenerator::PropertyType::Integer, "");
+ aDG.AddProperty ("ControlBackground", DescriptionGenerator::PropertyType::Color);
+ aDG.AddProperty ( "ControlBorder", DescriptionGenerator::PropertyType::Integer);
}
// ensure that we are listening to the Name property
m_bListeningForDesc = ensureListeningState( m_bListeningForDesc, true, lcl_getDescPropertyName() );
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx
index 636baf66cefb..116925587c1b 100644
--- a/svx/source/accessibility/DescriptionGenerator.cxx
+++ b/svx/source/accessibility/DescriptionGenerator.cxx
@@ -121,22 +121,8 @@ OUString DescriptionGenerator::operator() ()
}
-void DescriptionGenerator::AddProperty (
- const OUString& sPropertyName,
- PropertyType aType,
- const char* pLocalizedNameId)
-{
- OUString sLocalizedName;
- {
- SolarMutexGuard aGuard;
- sLocalizedName = SvxResId(pLocalizedNameId);
- }
- AddProperty (sPropertyName, aType, sLocalizedName);
-}
-
-
void DescriptionGenerator::AddProperty (const OUString& sPropertyName,
- PropertyType aType, const OUString& sLocalizedName)
+ PropertyType aType)
{
uno::Reference<beans::XPropertyState> xState (mxShape, uno::UNO_QUERY);
if (xState.is()
@@ -160,10 +146,10 @@ void DescriptionGenerator::AddProperty (const OUString& sPropertyName,
switch (aType)
{
case PropertyType::Color:
- AddColor (sPropertyName, sLocalizedName);
+ AddColor (sPropertyName, "");
break;
case PropertyType::Integer:
- AddInteger (sPropertyName, sLocalizedName);
+ AddInteger (sPropertyName, "");
break;
}
}