Author: aschnell Date: Mon Mar 9 12:50:31 2009 New Revision: 56012 URL: http://svn.opensuse.org/viewcvs/yast?rev=56012&view=rev Log: - removed temporary object Modified: trunk/qt-graph/src/QY2Graph.cc Modified: trunk/qt-graph/src/QY2Graph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-graph/src/QY2Graph.cc?rev=56012&r1=56011&r2=56012&view=diff ============================================================================== --- trunk/qt-graph/src/QY2Graph.cc (original) +++ trunk/qt-graph/src/QY2Graph.cc Mon Mar 9 12:50:31 2009 @@ -120,16 +120,14 @@ QPointF QY2Graph::gToQ(const point& p, bool upside_down) const { - QPointF tmp(p.x, p.y); - return upside_down ? QPointF(tmp.x(), graphRect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); + return upside_down ? QPointF(p.x, graphRect.height() - p.y) : QPointF(p.x, -p.y); } QPointF QY2Graph::gToQ(const pointf& p, bool upside_down) const { - QPointF tmp(p.x, p.y); - return upside_down ? QPointF(tmp.x(), graphRect.height() - tmp.y()) : QPointF(tmp.x(), -tmp.y()); + return upside_down ? QPointF(p.x, graphRect.height() - p.y) : QPointF(p.x, -p.y); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org