From 9059a17e3a8cfe536f66dfe17bd213d81f09c625 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 13 Oct 2015 11:35:27 +0200 Subject: clang-analyzer-deadcode.DeadStores ever since 68e756de2ec7f9aeb1b6a6a28468745eca114715 "n#657896 - Gradient Transparencies and Muticolor Gradient fills" moved the use of nDmlANgle (to set aGradient.Angle) from after the if/else to inside the else branch. According to vmiklos: "i guess it's just an oversight that the 'nDmlAngle = nShapeRotation;' is not removed in the 'if' branch." Change-Id: I63e449e01a83415d988d6616388d724449997f39 --- oox/source/drawingml/fillproperties.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'oox') diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 6879896b6e1e..883f9a459e8b 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -377,7 +377,6 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, aGradient.YOffset = getLimitedValue< sal_Int16, sal_Int32 >( nCenterY / PER_PERCENT, 30, 70 ); ::std::swap( aGradient.StartColor, aGradient.EndColor ); ::std::swap( nStartTrans, nEndTrans ); - nDmlAngle = nShapeRotation; } else { -- cgit