summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-05-14 13:21:47 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-14 14:15:08 +0200
commit73a29b4800234bb5919fb6300f317b25d0bbaa89 (patch)
tree7ebc70e47d2b75fcb03e16756b86fc0889195274 /src
parenta75f718b8d5303ccb2e8524146711b4ddc155906 (diff)
downloadqtxmlpatterns-73a29b4800234bb5919fb6300f317b25d0bbaa89.tar.gz
Fix copy and paste error
Fix error 8 and 9 identified by static analysis from http://www.viva64.com/en/b/0251/ Change-Id: I7f6741513814d8707e9dfe3402f970696238b8a3 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/data/qduration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/data/qduration.cpp b/src/xmlpatterns/data/qduration.cpp
index f4dc4c2..d6a3537 100644
--- a/src/xmlpatterns/data/qduration.cpp
+++ b/src/xmlpatterns/data/qduration.cpp
@@ -164,7 +164,7 @@ QString Duration::stringValue() const
retval.append(QLatin1Char('D'));
}
- if(!m_hours && !m_minutes && !m_seconds && !m_seconds)
+ if(!m_hours && !m_minutes && !m_seconds && !m_mseconds)
{
if(!m_years && !m_months && !m_days)
return QLatin1String("PT0S");
@@ -186,7 +186,7 @@ QString Duration::stringValue() const
retval.append(QLatin1Char('M'));
}
- if(m_seconds || m_seconds)
+ if(m_seconds || m_mseconds)
{
retval.append(QString::number(m_seconds));