From 2ef56b692de3cb7b696e340d4485c34c04940651 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 11 Jan 2013 09:29:16 +0100 Subject: [PATCH] Coding style fixes Change-Id: Idce62159028eadfec128a1f0f416b839ff204e82 Reviewed-by: Simon Hausmann --- qv4array.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qv4array.cpp b/qv4array.cpp index 32b465d..da86de8 100644 --- 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; } -- 2.7.4