Add operator-> to QJson iterators
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 15 Aug 2014 13:41:44 +0000 (15:41 +0200)
committerAllan Sandfeld Jensen <allan.jensen@digia.com>
Mon, 25 Aug 2014 14:03:42 +0000 (16:03 +0200)
commit7dce96220003e3fa3f932341aaecd8e7f55f4d95
treea8bafd0eca632b98f84b2a1f8b5424d8a13dccf0
parentf16de5c1fd8cf0e9d6a37aaa771144ccc4220fba
Add operator-> to QJson iterators

The iterators for QJsonArray and QJsonObject are currently lacking an
operator-> definition. Unfortunately it is not possible to do in clean
way without redefining either the iterators or QJsonValueRef class.

This patch instead adds two fake pointer classes that are only used
to handle the operator-> return value.

Task-number: QTBUG-29573
Change-Id: Ief785a6afbbedc9e89cf3b6f3958c2c755997a66
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/corelib/json/qjsonarray.cpp
src/corelib/json/qjsonarray.h
src/corelib/json/qjsonobject.cpp
src/corelib/json/qjsonobject.h
src/corelib/json/qjsonvalue.h
tests/auto/corelib/json/tst_qtjson.cpp