Fix some compiler warnings of clang in companion
This commit is contained in:
@@ -82,7 +82,7 @@ void Node::stepToCenter(qreal step)
|
|||||||
if(centerX)
|
if(centerX)
|
||||||
{
|
{
|
||||||
qreal x = qr.right() - qr.width()/2;
|
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;
|
p.rx() += p.x()>x ? -xStep : xStep;
|
||||||
else
|
else
|
||||||
p.rx() = x;
|
p.rx() = x;
|
||||||
@@ -91,7 +91,7 @@ void Node::stepToCenter(qreal step)
|
|||||||
if(centerY)
|
if(centerY)
|
||||||
{
|
{
|
||||||
qreal y = qr.bottom() - qr.height()/2;
|
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;
|
p.ry() += p.y()>y ? -yStep : yStep;
|
||||||
else
|
else
|
||||||
p.ry() = y;
|
p.ry() = y;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ void SimulatorDialogTaranis::getValues()
|
|||||||
{
|
{
|
||||||
-pots[0]->value(),
|
-pots[0]->value(),
|
||||||
pots[1]->value(),
|
pots[1]->value(),
|
||||||
((flags && SIMULATOR_FLAGS_S3) ? pots[2]->value() : 0),
|
((flags & SIMULATOR_FLAGS_S3) ? pots[2]->value() : 0),
|
||||||
-sliders[0]->value(),
|
-sliders[0]->value(),
|
||||||
sliders[1]->value()
|
sliders[1]->value()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user