Commit 585a7463 authored by Jan Hambrecht's avatar Jan Hambrecht

fix warnings

parent 66bcebcf
......@@ -303,13 +303,10 @@ void KoPathShapePrivate::debugPath() const
void KoPathShape::paintPoints(QPainter &painter, const KoViewConverter &converter, int handleRadius)
{
Q_D(KoPathShape);
applyConversion(painter, converter);
KoSubpathList::const_iterator pathIt(m_subpaths.constBegin());
QRectF handle = converter.viewToDocument(d->handleRect(QPoint(0, 0), handleRadius));
for (; pathIt != m_subpaths.constEnd(); ++pathIt) {
KoSubpath::const_iterator it((*pathIt)->constBegin());
for (; it != (*pathIt)->constEnd(); ++it)
......
......@@ -752,7 +752,6 @@ void KoRTree<T>::Node::remove(int index)
template <typename T>
void KoRTree<T>::Node::updateBoundingBox()
{
QRectF oldBB = m_boundingBox;
m_boundingBox = QRectF();
for (int i = 0; i < m_counter; ++i) {
m_boundingBox = m_boundingBox.unite(m_childBoundingBox[i]);
......
......@@ -400,7 +400,7 @@ bool KoShape::hitTest(const QPointF &position) const
QRectF KoShape::boundingRect() const
{
Q_D(const KoShape);
QSizeF mySize = size();
QTransform transform = absoluteTransformation(0);
QRectF bb = outlineRect();
if (d->border) {
......@@ -1563,7 +1563,6 @@ void KoShape::loadOdfGluePoints(const KoXmlElement &element, KoShapeLoadingConte
KoConnectionPoint connector;
const QRectF bbox = boundingRect();
const QString align = child.attributeNS(KoXmlNS::draw, "align", QString());
if (align.isEmpty()) {
#ifndef NWORKAROUND_ODF_BUGS
......@@ -1820,7 +1819,6 @@ void KoShape::saveOdfCommonChildElements(KoShapeSavingContext &context) const
// save glue points see ODF 9.2.19 Glue Points
if(d->connectors.count()) {
QSizeF s = size();
KoConnectionPoints::const_iterator cp = d->connectors.constBegin();
KoConnectionPoints::const_iterator lastCp = d->connectors.constEnd();
for(; cp != lastCp; ++cp) {
......
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