Fix cppcheck and compiler warnings

This commit is contained in:
Mat Sutcliffe
2020-06-18 23:48:58 +01:00
parent 9309beefc4
commit 670b1a1986
61 changed files with 131 additions and 153 deletions

View File

@@ -295,7 +295,7 @@ namespace BlackGui
// in which North=(1,0) and East=(-1,0)
// but we want North=(0,-1) and East=(0,1)
// (QGraphicsView y axis increases downwards)
qSwap(p.rx(), p.ry());
std::swap(p.rx(), p.ry());
p.setX(-p.x());
p.setY(-p.y());
return p;