diff options
author | vng <viktor.govako@gmail.com> | 2013-08-27 17:29:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:00:18 +0300 |
commit | e15c2864244149eb06b84dc6e4d83bd878a70f78 (patch) | |
tree | 99e193090a544baf36b962666421ae120239940b /platform/wifi_location_service.cpp | |
parent | 6e6b6e9c933af74bd54fbf095e2281e9da7f8cdc (diff) |
Factor out JsonHandle as a smart pointer on json_t.
Diffstat (limited to 'platform/wifi_location_service.cpp')
-rw-r--r-- | platform/wifi_location_service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |