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:
b69ce09
)
Coding style fixes
author
Lars Knoll
<lars.knoll@digia.com>
Fri, 11 Jan 2013 08:29:16 +0000
(09:29 +0100)
committer
Simon Hausmann
<simon.hausmann@digia.com>
Fri, 11 Jan 2013 09:06:03 +0000
(10:06 +0100)
Change-Id: Idce62159028eadfec128a1f0f416b839ff204e82
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4array.cpp
patch
|
blob
|
history
diff --git
a/qv4array.cpp
b/qv4array.cpp
index
32b465d
..
da86de8
100644
(file)
--- a/
qv4array.cpp
+++ b/
qv4array.cpp
@@
-461,7
+461,7
@@
SparseArrayNode *SparseArray::insert(uint akey)
return createNode(s, y, left);
}
-Array::Array(const Array &
other)
+Array::Array(const Array &other)
: len(other.len)
, values(other.values)
, sparse(0)
@@
-560,8
+560,7
@@
void Array::sort(ExecutionContext *context, Object *thisObject, const Value &com
ArrayElementLessThan lessThan(context, thisObject, comparefn);
std::sort(values.begin(), values.end(), lessThan);
- if (sparse)
- delete sparse;
+ delete sparse;
}