Kaydet (Commit) 60eaa7d7 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: use auto when initializing with a template cast ...

... to avoid duplicating the type name.

Change-Id: I98379b35baeccf685bcadecf794e73e91024da0b
Reviewed-on: https://gerrit.libreoffice.org/60979Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
üst 8913a084
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment