From 2b53dac40715c0074fdcd64a0bf75c43322cb262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Arve=20S=C3=A6ther?= Date: Tue, 18 Aug 2009 12:56:57 +0200 Subject: Remove some warnings --- src/gui/graphicsview/qgraphicsanchorlayout_p.cpp | 2 -- src/gui/graphicsview/qgraphicsanchorlayout_p.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp index cdb23dd..f248ffa 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.cpp @@ -873,11 +873,9 @@ void QGraphicsAnchorLayoutPrivate::removeCenterAnchors( if (!center) return; AnchorVertex *first = internalVertex(item, firstEdge); - AnchorVertex *last = internalVertex(item, lastEdge); Q_ASSERT(first); Q_ASSERT(center); - Q_ASSERT(last); Graph &g = graph[orientation]; diff --git a/src/gui/graphicsview/qgraphicsanchorlayout_p.h b/src/gui/graphicsview/qgraphicsanchorlayout_p.h index be8e32f..144465a 100644 --- a/src/gui/graphicsview/qgraphicsanchorlayout_p.h +++ b/src/gui/graphicsview/qgraphicsanchorlayout_p.h @@ -155,6 +155,8 @@ struct AnchorData : public QSimplexVariable { virtual void updateChildrenSizes() { }; virtual void refreshSizeHints(qreal effectiveSpacing); + virtual ~AnchorData() {} + void dump(int indent = 2); inline QString toString() const; -- cgit v0.12