summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews2.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 12:08:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 15:22:38 +0200
commite4c8e666541a058dc9ca3c17029eb629bd7cf100 (patch)
treec5e9f8b3d6f25976fbf3e7dcceffe279e204221c /sd/source/ui/view/drviews2.cxx
parent46da549a68003ef5a35aedf4621482cb2b54e930 (diff)
loplugin:reducevarscope in sd
Change-Id: Ia4a62900536ea49583cc00853ff937fae35c2d7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103679 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/drviews2.cxx')
-rw-r--r--sd/source/ui/view/drviews2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 9c35ca4077f7..dd9eb1f75b19 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -549,7 +549,6 @@ public:
void lcl_convertStringArguments(sal_uInt16 nSlot, std::unique_ptr<SfxItemSet>& pArgs)
{
Color aColor;
- OUString sColor;
const SfxPoolItem* pItem = nullptr;
if (SfxItemState::SET == pArgs->GetItemState(SID_ATTR_LINE_WIDTH_ARG, false, &pItem))
@@ -564,7 +563,7 @@ public:
}
if (SfxItemState::SET == pArgs->GetItemState(SID_ATTR_COLOR_STR, false, &pItem))
{
- sColor = static_cast<const SfxStringItem*>(pItem)->GetValue();
+ OUString sColor = static_cast<const SfxStringItem*>(pItem)->GetValue();
if (sColor == "transparent")
aColor = COL_TRANSPARENT;