From d7b8ba265b0d8536ebb1c42399aaf9ae5459fee3 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 21 Feb 2014 00:09:30 +0100 Subject: [PATCH] Cleanup whitespace --- src/declarativeimports/core/svgitem.cpp | 8 ++++---- src/plasma/svg.cpp | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/declarativeimports/core/svgitem.cpp b/src/declarativeimports/core/svgitem.cpp index d8ed6ed9c..b7f2d42fa 100644 --- a/src/declarativeimports/core/svgitem.cpp +++ b/src/declarativeimports/core/svgitem.cpp @@ -123,16 +123,16 @@ bool SvgItem::smooth() const return m_smooth; } -QSGNode* SvgItem::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updatePaintNodeData) +QSGNode *SvgItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) { - Q_UNUSED(updatePaintNodeData); + Q_UNUSED(updatePaintNodeData) if (!window() || !m_svg) { delete oldNode; return 0; } - QSGSimpleTextureNode *textureNode = static_cast(oldNode); + QSGSimpleTextureNode *textureNode = static_cast(oldNode); if (!textureNode) { textureNode = new QSGSimpleTextureNode; } @@ -149,7 +149,7 @@ QSGNode* SvgItem::updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* updateP delete m_texture; m_texture = window()->createTextureFromImage(image); textureNode->setTexture(m_texture); - textureNode->setRect(0,0, width(), height()); + textureNode->setRect(0, 0, width(), height()); } return textureNode; diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 3528de3e6..eaeab93fc 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -673,8 +673,6 @@ QImage Svg::image(const QString &elementID) return pixmap(elementID).toImage(); } - - void Svg::paint(QPainter *painter, const QPointF &point, const QString &elementID) { QPixmap pix((elementID.isNull() || d->multipleImages) ? d->findInCache(elementID, size()) :