summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/data/qdaytimeduration.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-01-14 11:11:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-14 11:47:31 +0100
commit494882adadb33ffb7a7a9b2fa9356362df87d3bf (patch)
tree49763554e6403139a2a42b73e5094648aea574ca /src/xmlpatterns/data/qdaytimeduration.cpp
parent831c6a4ec263b0f3237db488005cdb69989cfa49 (diff)
downloadqtxmlpatterns-494882adadb33ffb7a7a9b2fa9356362df87d3bf.tar.gz
fix conditionals in DayTimeDuration::stringValue()
Task-number: QTBUG-35479 Change-Id: If385bd85f5c20871a0248c828626deea2d72e0a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Diffstat (limited to 'src/xmlpatterns/data/qdaytimeduration.cpp')
-rw-r--r--src/xmlpatterns/data/qdaytimeduration.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xmlpatterns/data/qdaytimeduration.cpp b/src/xmlpatterns/data/qdaytimeduration.cpp
index c21e352..5f273d7 100644
--- a/src/xmlpatterns/data/qdaytimeduration.cpp
+++ b/src/xmlpatterns/data/qdaytimeduration.cpp
@@ -145,8 +145,7 @@ QString DayTimeDuration::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_days)
return QLatin1String("PT0S");
else
@@ -167,8 +166,7 @@ QString DayTimeDuration::stringValue() const
retval.append(QLatin1Char('M'));
}
- if(m_seconds || m_seconds)
- {
+ if (m_seconds || m_mseconds) {
retval.append(QString::number(m_seconds));
if(m_mseconds)