Fix a bug in LifetimeInterval:covers()
authorLars Knoll <lars.knoll@digia.com>
Sun, 27 Oct 2013 20:43:37 +0000 (21:43 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 4 Nov 2013 14:01:30 +0000 (15:01 +0100)
Change-Id: I7c3b0b2ac43462a9834e3f1891dae23fc9ed061d
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
src/qml/compiler/qv4ssa_p.h

index fc84ffd..aa713d3 100644 (file)
@@ -98,9 +98,7 @@ public:
     bool covers(int position) const
     {
         foreach (const Range &r, _ranges) {
-            if (position < r.start)
-                return false;
-            if (position <= r.end)
+            if (r.covers(position))
                 return true;
         }
         return false;