From e15c2864244149eb06b84dc6e4d83bd878a70f78 Mon Sep 17 00:00:00 2001 From: vng Date: Tue, 27 Aug 2013 16:29:33 +0300 Subject: Factor out JsonHandle as a smart pointer on json_t. --- platform/wifi_location_service.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/wifi_location_service.cpp') diff --git a/platform/wifi_location_service.cpp b/platform/wifi_location_service.cpp index 3fd394c5a8..1989eb9d7e 100644 --- a/platform/wifi_location_service.cpp +++ b/platform/wifi_location_service.cpp @@ -29,9 +29,9 @@ namespace location { bool success = false; my::Json root(response.Data().c_str()); - if (json_is_object(root)) + if (json_is_object(root.get())) { - json_t * location = json_object_get(root, "location"); + json_t * location = json_object_get(root.get(), "location"); if (json_is_object(location)) { json_t * lat = json_object_get(location, "latitude"); -- cgit v1.2.3