summaryrefslogtreecommitdiff
path: root/src/svg/qsvgstyle.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-06-04 10:13:11 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-11 01:50:14 +0200
commit1ce9af6c1c32b20dedc33bd46cde5ee4b34a04c1 (patch)
treeb148b378085cbd97824d63ab91aafeaf95af7b8c /src/svg/qsvgstyle.cpp
parented11da0e216c84c4950f57cf9d9d262221050d4f (diff)
downloadqtsvg-1ce9af6c1c32b20dedc33bd46cde5ee4b34a04c1.tar.gz
Fix warnings found by clang: unused private members
Classes with no friends should use all its private members. Otherwise, they just take up space for no good reason -- unless it's a placeholder for future use (binary compatibility). These are also private classes, so BC does not apply. qsvgstyle_p.h:198:9: error: private field 'm_colorRendering' is not used [-Werror,-Wunused-private-field] qsvgstyle_p.h:693:25: error: private field 'm_by' is not used [-Werror,-Wunused-private-field] Change-Id: I6aee61b2ba195b251cd1896e41948cc42ff68c46 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/svg/qsvgstyle.cpp')
-rw-r--r--src/svg/qsvgstyle.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp
index 16a2ad1..243ed0d 100644
--- a/src/svg/qsvgstyle.cpp
+++ b/src/svg/qsvgstyle.cpp
@@ -85,9 +85,8 @@ void QSvgFillStyleProperty::revert(QPainter *, QSvgExtraStates &)
QSvgQualityStyle::QSvgQualityStyle(int color)
- : m_colorRendering(color)
{
-
+ Q_UNUSED(color);
}
void QSvgQualityStyle::apply(QPainter *, const QSvgNode *, QSvgExtraStates &)
{
@@ -640,10 +639,11 @@ void QSvgStyle::revert(QPainter *p, QSvgExtraStates &states)
QSvgAnimateTransform::QSvgAnimateTransform(int startMs, int endMs, int byMs )
: QSvgStyleProperty(),
- m_from(startMs), m_to(endMs), m_by(byMs),
+ m_from(startMs), m_to(endMs),
m_type(Empty), m_additive(Replace), m_count(0), m_finished(false), m_transformApplied(false)
{
m_totalRunningTime = m_to - m_from;
+ Q_UNUSED(byMs);
}
void QSvgAnimateTransform::setArgs(TransformType type, Additive additive, const QVector<qreal> &args)
@@ -811,10 +811,11 @@ void QSvgAnimateTransform::setRepeatCount(qreal repeatCount)
QSvgAnimateColor::QSvgAnimateColor(int startMs, int endMs, int byMs)
: QSvgStyleProperty(),
- m_from(startMs), m_to(endMs), m_by(byMs),
+ m_from(startMs), m_to(endMs),
m_finished(false)
{
m_totalRunningTime = m_to - m_from;
+ Q_UNUSED(byMs);
}
void QSvgAnimateColor::setArgs(bool fill,