Commit 73a29b48 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by The Qt Project
Browse files

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: default avatarMitch Curtis <mitch.curtis@digia.com>
parent a75f718b
Branches
Tags
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -164,7 +164,7 @@ QString Duration::stringValue() const ...@@ -164,7 +164,7 @@ QString Duration::stringValue() const
retval.append(QLatin1Char('D')); 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) if(!m_years && !m_months && !m_days)
return QLatin1String("PT0S"); return QLatin1String("PT0S");
...@@ -186,7 +186,7 @@ QString Duration::stringValue() const ...@@ -186,7 +186,7 @@ QString Duration::stringValue() const
retval.append(QLatin1Char('M')); retval.append(QLatin1Char('M'));
} }
if(m_seconds || m_seconds) if(m_seconds || m_mseconds)
{ {
retval.append(QString::number(m_seconds)); retval.append(QString::number(m_seconds));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment