Fix some compiler warnings of clang in companion

This commit is contained in:
Arne Schwabe
2016-04-18 00:53:12 +02:00
parent d2923a32d3
commit 788b62d80c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ void Node::stepToCenter(qreal step)
if(centerX)
{
qreal x = qr.right() - qr.width()/2;
if(abs(x-p.x())>xStep)
if(fabs(x-p.x())>xStep)
p.rx() += p.x()>x ? -xStep : xStep;
else
p.rx() = x;
@@ -91,7 +91,7 @@ void Node::stepToCenter(qreal step)
if(centerY)
{
qreal y = qr.bottom() - qr.height()/2;
if(abs(y-p.y())>yStep)
if(fabs(y-p.y())>yStep)
p.ry() += p.y()>y ? -yStep : yStep;
else
p.ry() = y;
@@ -120,7 +120,7 @@ void SimulatorDialogTaranis::getValues()
{
-pots[0]->value(),
pots[1]->value(),
((flags && SIMULATOR_FLAGS_S3) ? pots[2]->value() : 0),
((flags & SIMULATOR_FLAGS_S3) ? pots[2]->value() : 0),
-sliders[0]->value(),
sliders[1]->value()
},