From 60eaa7d7b856bc17b2a49a510be6d3c50851cb92 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 25 Sep 2018 23:53:06 +0200 Subject: 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 Tested-by: Jenkins --- sw/source/filter/ww8/rtfattributeoutput.cxx | 4 ++-- 1 file 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(RES_BACKGROUND); if (pTableColorProp) aColor = pTableColorProp->GetColor(); - const SvxBrushItem* pRowColorProp + auto pRowColorProp = pTableLine->GetFrameFormat()->GetAttrSet().GetItem(RES_BACKGROUND); if (pRowColorProp && pRowColorProp->GetColor() != COL_AUTO) aColor = pRowColorProp->GetColor(); -- cgit