diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-21 13:38:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-22 14:14:48 +0200 |
commit | 7fb43031b7eec663768f5a4e78e60da86379df41 (patch) | |
tree | 026dd9b5a522aec8534763af074fc4a28ccfa58d /svx/source/accessibility/DescriptionGenerator.cxx | |
parent | 61ea11e51ceeaec7bf197a076cf40d96bd65ad07 (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/DescriptionGenerator.cxx')
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 20 |
1 files changed, 3 insertions, 17 deletions
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; } } |