[place-recognition] Small SVACE defects fix. 31/64331/2
authorMarcin Masternak <m.masternak@samsung.com>
Thu, 31 Mar 2016 12:18:44 +0000 (14:18 +0200)
committerMarcin Masternak <m.masternak@samsung.com>
Thu, 31 Mar 2016 12:18:44 +0000 (14:18 +0200)
Change-Id: I64f9551a55bf97c0dd16792b999e659871e5b02b
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
src/place/recognition/place_recognition.cpp
src/place/recognition/user_places/location_logger.cpp
src/place/recognition/user_places/piecewise_lin.cpp
src/place/recognition/user_places/wifi_logger.cpp

index 7fb092f..9cdd6f6 100644 (file)
@@ -54,7 +54,7 @@ int ctx::place_recognition_provider::read(const char *subject, ctx::Json option,
        _J("Option", option);
 
        std::vector<std::shared_ptr<ctx::Place>> places = engine.get_places();
-       Json data_read = engine.compose_json(places);
+       Json data_read = UserPlaces::compose_json(places);
 
        // The below function needs to be called once.
        // It does not need to be called within this read() function.
index 6bee94b..3a4fb93 100644 (file)
@@ -207,6 +207,8 @@ ctx::LocationLogger::LocationLogger(ILocationListener *listener_, bool test_mode
        , location_count(0)
        , active_request_succeeded(false)
        , active_location_succeeded(false)
+       , timer_id(-1)
+       , timer_timestamp(0)
        , timer_purpose(LOCATION_LOGGER_WAITING_FOR_PASSIVE_INTERVAL)
        , location_service_state(LOCATIONS_SERVICE_DISABLED)
        , location_method(LOCATION_LOGGER_METHOD)
index f22d37c..e1cbd46 100644 (file)
@@ -18,6 +18,7 @@
 #include <types_internal.h>
 
 ctx::PiecewiseLin::PiecewiseLin(std::vector<num_t> _xs, std::vector<num_t> _vs)
+       : n(0)
 {
        if (_xs.size() != _vs.size()) {
                _E("Input arguments have different sizes");
index 5a6dfba..7d0c89d 100644 (file)
@@ -72,6 +72,7 @@ ctx::WifiLogger::WifiLogger(IWifiListener * listener_, place_recog_mode_e energy
        , timer_on(false)
        , interval_minutes(WIFI_LOGGER_INTERVAL_MINUTES_HIGH_ACCURACY)
        , during_visit(false)
+       , connected_to_wifi_ap(false)
        , started(false)
        , running(false)
 {