summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 12:15:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-11 13:17:55 +0200
commit066599203ce143b3614e0fa298a05ed28ba2ca63 (patch)
tree5652593d654ffc4fd029158776ecc01b6567d7ea
parent7413cc96d239f5fd5a588f13784ccb82b6968bac (diff)
no need to make a copy here
Change-Id: I47d51d3d372403f30ab38697037cdb205839df44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117030 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 42abd0f81130..cb3a7d9830b2 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -4021,9 +4021,9 @@ void SwTextNode::SetAttrOutlineLevel(int nLevel)
void SwTextNode::GetAttrOutlineContentVisible(bool& bOutlineContentVisibleAttr)
{
- SfxGrabBagItem aGrabBagItem(dynamic_cast<const SfxGrabBagItem&>(GetAttr(RES_PARATR_GRABBAG)));
- auto it = aGrabBagItem.GetGrabBag().find("OutlineContentVisibleAttr");
- if (it != aGrabBagItem.GetGrabBag().end())
+ const SfxGrabBagItem & rGrabBagItem = dynamic_cast<const SfxGrabBagItem&>(GetAttr(RES_PARATR_GRABBAG));
+ auto it = rGrabBagItem.GetGrabBag().find("OutlineContentVisibleAttr");
+ if (it != rGrabBagItem.GetGrabBag().end())
it->second >>= bOutlineContentVisibleAttr;
}