projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f1e4ca
)
Fix a bug in LifetimeInterval:covers()
author
Lars Knoll
<lars.knoll@digia.com>
Sun, 27 Oct 2013 20:43:37 +0000
(21:43 +0100)
committer
The 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
patch
|
blob
|
history
diff --git
a/src/qml/compiler/qv4ssa_p.h
b/src/qml/compiler/qv4ssa_p.h
index
fc84ffd
..
aa713d3
100644
(file)
--- a/
src/qml/compiler/qv4ssa_p.h
+++ b/
src/qml/compiler/qv4ssa_p.h
@@
-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;