summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgstyle.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 12:42:48 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 12:43:41 (GMT)
commit6687a82476a96922f23d4fd3535d4e7354d9cdab (patch)
tree13bfc8e9f277dcb16f034bbf71b234b2f3547d04 /src/svg/qsvgstyle.cpp
parent1ca6a2f3174fdfbbe080af920ab75558a1a9247e (diff)
downloadQt-6687a82476a96922f23d4fd3535d4e7354d9cdab.zip
Qt-6687a82476a96922f23d4fd3535d4e7354d9cdab.tar.gz
Qt-6687a82476a96922f23d4fd3535d4e7354d9cdab.tar.bz2
More coverity warnings removed
Diffstat (limited to 'src/svg/qsvgstyle.cpp')
-rw-r--r--src/svg/qsvgstyle.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp
index 820f716..1ecf870 100644
--- a/src/svg/qsvgstyle.cpp
+++ b/src/svg/qsvgstyle.cpp
@@ -90,6 +90,7 @@ QSvgFillStyle::QSvgFillStyle(const QBrush &brush)
, m_fillRule(Qt::WindingFill)
, m_fillOpacitySet(false)
, m_fillOpacity(1.0)
+ , m_oldOpacity(0)
, m_gradientResolved(true)
, m_fillSet(true)
{
@@ -101,6 +102,7 @@ QSvgFillStyle::QSvgFillStyle(QSvgStyleProperty *style)
, m_fillRule(Qt::WindingFill)
, m_fillOpacitySet(false)
, m_fillOpacity(1.0)
+ , m_oldOpacity(0)
, m_gradientResolved(true)
, m_fillSet(style != 0)
{
@@ -858,7 +860,7 @@ QSvgStyleProperty::Type QSvgAnimateColor::type() const
}
QSvgOpacityStyle::QSvgOpacityStyle(qreal opacity)
- : m_opacity(opacity)
+ : m_opacity(opacity), m_oldOpacity(0)
{
}