[Coverity] Remove redundant if() check where both branches are identical

This commit is contained in:
baldurk committed 2018-05-08 12:39:10 +01:00
1 parent 65852d9662
commit 8ef0d847ce
1 file changed
+1 -4
+1 -4
View File
@@ -2027,10 +2027,7 @@ void RDStyle::drawControl(ControlElement control, const QStyleOption *opt, QPain
poly << pt;
pt.setX(arrowRect.center().x());
if(header->sortIndicator == QStyleOptionHeader::SortDown)
pt.setY(ycentre - yoffset);
else
pt.setY(ycentre - yoffset);
pt.setY(ycentre - yoffset);
poly << pt;
pt.setX(arrowRect.right() - penWidth);