Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'platform/wifi_location_service.cpp')
-rw-r--r--platform/wifi_location_service.cpp4
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");