diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-09-25 23:53:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-09-26 12:18:56 +0200 |
commit | 60eaa7d7b856bc17b2a49a510be6d3c50851cb92 (patch) | |
tree | 81b85c46df71ab375c659ec3715173e7065bd930 /sw/source | |
parent | 8913a08423e732f27ae7645cad9570aadb5aaf2b (diff) |
sw: use auto when initializing with a template cast ...
... to avoid duplicating the type name.
Change-Id: I98379b35baeccf685bcadecf794e73e91024da0b
Reviewed-on: https://gerrit.libreoffice.org/60979
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 8fba8b326d63..49482a7a8c1f 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -731,12 +731,12 @@ void RtfAttributeOutput::TableBackgrounds( const SwTableLine* pTableLine = pTableBox->GetUpper(); Color aColor = COL_AUTO; - const SvxBrushItem* pTableColorProp + auto pTableColorProp = pTable->GetFrameFormat()->GetAttrSet().GetItem<SvxBrushItem>(RES_BACKGROUND); if (pTableColorProp) aColor = pTableColorProp->GetColor(); - const SvxBrushItem* pRowColorProp + auto pRowColorProp = pTableLine->GetFrameFormat()->GetAttrSet().GetItem<SvxBrushItem>(RES_BACKGROUND); if (pRowColorProp && pRowColorProp->GetColor() != COL_AUTO) aColor = pRowColorProp->GetColor(); |