From 19a906f09688f06ee90cac2a50126aeba749a331 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Feb 2018 16:11:15 +0200 Subject: drop Color::SetColor(ColorData) in favour of operator= first stage of getting rid of ColorData Change-Id: I5e4e95eb958722814c43c8d1ebfef17ad18c29ec Reviewed-on: https://gerrit.libreoffice.org/49997 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- editeng/source/rtf/svxrtf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editeng/source/rtf') diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 67bc1ce7bfe5..6c4ff8b887df 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -414,7 +414,7 @@ void SvxRTFParser::ReadColorTable() Color* pColor = new Color( nRed, nGreen, nBlue ); if( aColorTbl.empty() && sal_uInt8(-1) == nRed && sal_uInt8(-1) == nGreen && sal_uInt8(-1) == nBlue ) - pColor->SetColor( COL_AUTO ); + *pColor = COL_AUTO; aColorTbl.push_back( pColor ); nRed = 0; nGreen = 0; -- cgit