diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-04-15 09:37:33 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-04-15 09:38:51 +0200 |
commit | 504a9575e7bebe29528c60686a6ad64f9ba81c8b (patch) | |
tree | 106af383074d7523244ea3fc3a4aac01933ce5fd /xmloff | |
parent | 11473832b5717cb3222ce72baee885bc9e8e2386 (diff) |
xmloff: fix loplugin:simplifyconstruct warning
Change-Id: Iab32f67f911157c5d7c0db8f36ea638576cfd0bf
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/TransGradientStyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/TransGradientStyle.cxx b/xmloff/source/style/TransGradientStyle.cxx index fb24ef79610e..3de8ce2a4eee 100644 --- a/xmloff/source/style/TransGradientStyle.cxx +++ b/xmloff/source/style/TransGradientStyle.cxx @@ -248,7 +248,7 @@ void XMLTransGradientStyleExport::exportXML( } // Transparency start - Color aColor = Color(aGradient.StartColor); + Color aColor(aGradient.StartColor); sal_Int32 aStartValue = 100 - static_cast<sal_Int32>(((aColor.GetRed() + 1) * 100) / 255); ::sax::Converter::convertPercent( aOut, aStartValue ); aStrValue = aOut.makeStringAndClear(); |