diff --git a/src/xmlpatterns/data/qdaytimeduration.cpp b/src/xmlpatterns/data/qdaytimeduration.cpp index c21e352942cdd7abffbcbc2816df3c7e3eef107f..5f273d7a26fab23397956fab2f3f23ebcf2ca376 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)