summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-05-14 13:28:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-16 10:48:27 +0200
commite13d30be68228ccda3b6310ac44a84981b17f03b (patch)
treec1781d0e09bc3b876be11885407f2eac25bf1374
parent73a29b4800234bb5919fb6300f317b25d0bbaa89 (diff)
downloadqtxmlpatterns-stable.tar.gz
Fix copy and paste errorv5.3.1stable5.3.1
Fix error 11 identified by static analysis from http://www.viva64.com/en/b/0251/ Change-Id: I3ed821c6d7cda874bfa5e3a24ccde1a4f2f13ec9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r--src/xmlpatterns/data/qatomiccomparators.cpp2
1 files changed, 1 insertions, 1 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: