Commit 98734ee2 authored by Halla Rempt's avatar Halla Rempt

fix some warnings

parent 24aecf63
......@@ -46,13 +46,13 @@ bool KisMirrorVisitor::visit(KisFilterMask* mask)
return true;
}
bool KisMirrorVisitor::visit(KisCloneLayer* layer)
bool KisMirrorVisitor::visit(KisCloneLayer* /*layer*/)
{
return true;
}
bool KisMirrorVisitor::visit(KisGeneratorLayer* layer)
bool KisMirrorVisitor::visit(KisGeneratorLayer* /*layer*/)
{
return true;
......@@ -72,7 +72,7 @@ bool KisMirrorVisitor::visit(KisExternalLayer* layer)
}
bool KisMirrorVisitor::visit(KisAdjustmentLayer* layer)
bool KisMirrorVisitor::visit(KisAdjustmentLayer* /*layer*/)
{
return true;
......@@ -110,7 +110,7 @@ bool KisMirrorVisitor::visit(KisPaintLayer* layer)
return true;
}
bool KisMirrorVisitor::visit(KisNode* node)
bool KisMirrorVisitor::visit(KisNode* /*node*/)
{
return true;
......@@ -138,7 +138,7 @@ bool KisMirrorVisitor::mirrorMask(KisMask* mask)
dirty = KisTransformWorker::mirrorY(dev, m_image->height()/2.0f);
}
mask->setDirty(dirty);
transaction.commit(m_image->undoAdapter());
transaction.commit(m_image->undoAdapter());
dev->setDirty(dirty);
}
/* TODO: Doesn't work correctly even thoush it's the same code as the shape layer
......
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