summaryrefslogtreecommitdiffstats
path: root/src/corelib/json/qjson.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-02-01 17:04:19 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-02 01:56:03 +0100
commitbd8ef8d073201504a983249c4006c827befacf09 (patch)
treee096d27c74b4183996026d57ad93b4fca4afa43b /src/corelib/json/qjson.cpp
parent15f253a46aa45e2a9fa1055799fa2768ba49b9a3 (diff)
Fix some warnings from clang
One of them was a real error, that could lead to Data::alloc containing wrong values. Change-Id: I48315ef6fd59188630107ebbe7bf8dbaa5da689e Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/corelib/json/qjson.cpp')
-rw-r--r--src/corelib/json/qjson.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/json/qjson.cpp b/src/corelib/json/qjson.cpp
index e8c2712781..4f7372a6c0 100644
--- a/src/corelib/json/qjson.cpp
+++ b/src/corelib/json/qjson.cpp
@@ -127,7 +127,7 @@ void Data::compact()
free(header);
header = h;
- alloc = alloc;
+ this->alloc = alloc;
compactionCounter = 0;
}