summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xmlpatterns/data/qatomiccomparators.cpp2
-rw-r--r--src/xmlpatterns/data/qduration.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/xmlpatterns/data/qatomiccomparators.cpp b/src/xmlpatterns/data/qatomiccomparators.cpp
index f0ad8f7..e889aaf 100644
--- a/src/xmlpatterns/data/qatomiccomparators.cpp
+++ b/src/xmlpatterns/data/qatomiccomparators.cpp
@@ -218,7 +218,7 @@ IntegerComparator::compare(const Item &o1,
const Item &o2) const
{
const Numeric *const num1 = o1.as<Numeric>();
- const Numeric *const num2 = o1.as<Numeric>();
+ const Numeric *const num2 = o2.as<Numeric>();
/**
* Consider:
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));