Hide parameters only used in Q_ASSERT, but not in rest of method

parent 122d275e
......@@ -62,7 +62,7 @@ public:
virtual void updatePosition(const QTextDocument *document, int posInDocument, const QTextCharFormat &/*format*/)
{
Q_ASSERT(posInDocument <= document->toPlainText().size());
Q_ASSERT(posInDocument <= document->toPlainText().size()); Q_UNUSED(document);
m_position = posInDocument;
}
......
......@@ -139,7 +139,7 @@ void ShrinkToFitShapeContainerModel::finishedLayout()
void ShrinkToFitShapeContainerModel::containerChanged(KoShapeContainer *container, KoShape::ChangeType type)
{
Q_ASSERT(container == q);
Q_ASSERT(container == q); Q_UNUSED(container);
if (type == KoShape::SizeChanged) {
KoTextShapeData* data = dynamic_cast<KoTextShapeData*>(d->childShape->userData());
Q_ASSERT(data);
......@@ -180,18 +180,18 @@ void ShrinkToFitShapeContainerModel::containerChanged(KoShapeContainer *containe
bool ShrinkToFitShapeContainerModel::inheritsTransform(const KoShape *child) const
{
Q_ASSERT(child == d->childShape);
Q_ASSERT(child == d->childShape); Q_UNUSED(child);
return true;
}
bool ShrinkToFitShapeContainerModel::isChildLocked(const KoShape *child) const
{
Q_ASSERT(child == d->childShape);
Q_ASSERT(child == d->childShape); Q_UNUSED(child);
return true;
}
bool ShrinkToFitShapeContainerModel::isClipped(const KoShape *child) const
{
Q_ASSERT(child == d->childShape);
Q_ASSERT(child == d->childShape); Q_UNUSED(child);
return false;
}
......@@ -1963,7 +1963,7 @@ void TextTool::repaintCaret()
return;
KoTextDocumentLayout *lay = qobject_cast<KoTextDocumentLayout*>(m_textShapeData->document()->documentLayout());
Q_ASSERT(lay);
Q_ASSERT(lay); Q_UNUSED(lay);
// If we have changed root area we need to update m_textShape and m_textShapeData
if (m_delayedEnsureVisible) {
......
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