Commit 43a2b2e0 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix warning: unused variable and code

parent 5d145c40
......@@ -53,7 +53,7 @@ void ChangeConnectionPointCommand::undo()
updateRoi(m_oldPoint.position);
}
void ChangeConnectionPointCommand::updateRoi(const QPointF &position)
void ChangeConnectionPointCommand::updateRoi(const QPointF &/*position*/)
{
// TODO: is there a way we can get at the correct update size?
//QRectF roi(0, 0, 10, 10);
......
......@@ -260,23 +260,23 @@ void DefaultToolGeometryWidget::slotUpdateAspectButton()
aspectButton->setKeepAspectRatio(hasKeepAspectRatio);
}
namespace {
qreal calculateCommonShapeTransparency(const QList<KoShape*> &shapes)
{
qreal commonTransparency = -1.0;
Q_FOREACH (KoShape *shape, shapes) {
if (commonTransparency < 0) {
commonTransparency = shape->transparency();
} else if (!qFuzzyCompare(commonTransparency, shape->transparency())) {
commonTransparency = -1.0;
break;
}
}
return commonTransparency;
}
}
//namespace {
//qreal calculateCommonShapeTransparency(const QList<KoShape*> &shapes)
//{
// qreal commonTransparency = -1.0;
// Q_FOREACH (KoShape *shape, shapes) {
// if (commonTransparency < 0) {
// commonTransparency = shape->transparency();
// } else if (!qFuzzyCompare(commonTransparency, shape->transparency())) {
// commonTransparency = -1.0;
// break;
// }
// }
// return commonTransparency;
//}
//}
void DefaultToolGeometryWidget::slotOpacitySliderChanged(qreal newOpacity)
{
......
......@@ -104,6 +104,7 @@ void KisConstrainedRect::moveHandle(HandleType handle, const QPoint &offset, con
break;
case Creation:
baseSizeCoeff = 0;
/* Falls through */
case LowerRight:
xSizeCoeff = 1;
ySizeCoeff = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment