fix warning messages 18/154218/2 accepted/tizen/4.0/unified/20171010.064218 submit/tizen_4.0/20171010.004559 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
authorchanywa <cbible.kim@samsung.com>
Tue, 10 Oct 2017 00:01:27 +0000 (09:01 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 10 Oct 2017 00:02:35 +0000 (09:02 +0900)
Change-Id: I6931403bd285f157078c940d3bdb3e179cd151cf

maps-plugin-mapzen.changes
packaging/maps-plugin-mapzen.spec
src/mapzen/mapzen_route.cpp
src/mapzen/tangram_view.cpp

index f1989c3..8109831 100644 (file)
@@ -1,5 +1,20 @@
+[Version]   maps-plugin-mapzen_0.0.5
+[Date]      10 Oct 2017
+[Title]     fix warning messages
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
+[Version]   maps-plugin-mapzen_0.0.4
+[Date]      23 Aug 2017
+[Title]     add plugin APIs for added Map Service APIs
+[Developer] Jongmun Woo <jongmun.woo@samsung.com>
+
+[Version]   maps-plugin-mapzen_0.0.3
+[Date]      18 May 2017
+[Title]     add mapzen plugin
+[Developer] Jongmun Woo <jongmun.woo@samsung.com>
+
 [Version]   maps-plugin-mapzen_0.0.2
-[Date]      08 Feb  2017
+[Date]      08 Feb 2017
 [Title]     fix call EXPOST_API of other plugin
 [Developer] Jongmun Woo <jongmun.woo@samsung.com>
 
index 24f4d3e..06853ab 100644 (file)
@@ -1,6 +1,6 @@
 Name:       maps-plugin-mapzen
 Summary:    Tizen Mapzen Maps Plug-in Library
-Version:    0.0.4
+Version:    0.0.5
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0 and MIT
index 361a39f..6e73374 100644 (file)
@@ -45,7 +45,7 @@ extern "C" {
 
 std::string url_encode(const std::string& unencoded) {
    char* encoded = curl_escape(unencoded.c_str(), static_cast<int>(unencoded.size()));
-   MAP_DEBUG("route json after url encoding: " + *encoded);
+   MAP_DEBUG("route json after url encoding: %s", (encoded ? encoded : "(null)"));
    std::string encoded_str(encoded);
    curl_free(encoded);
    return encoded_str;
index 45b8db5..f5925ff 100644 (file)
@@ -648,7 +648,7 @@ mapzen_error_e TangramView::updateMarker(maps_view_object_h object, Tangram::Mar
        int error = MAPS_ERROR_NONE;
        unsigned char *imgData = nullptr;
 
-       const char* styleFormat = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }";
+       const char styleFormat[] = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }";
 
        static std::string anchor;
 
@@ -733,7 +733,7 @@ mapzen_error_e TangramView::updatePolyline(maps_view_object_h object, Tangram::M
        unsigned char r = 0, g = 0, b = 0, a = 0;
        int width = 0;
 
-       const char* styleFormat = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }";
+       const char styleFormat[] = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }";
 
        do {
                error = maps_view_object_polyline_get_color(object, &r, &g, &b, &a);
@@ -763,7 +763,7 @@ mapzen_error_e TangramView::updatePolygon(maps_view_object_h object, Tangram::Ma
        int error = MAPS_ERROR_NONE;
        Tangram::Coordinates coords = {};
        unsigned char r = 0, g = 0, b = 0, a = 0;
-       const char* styleFormat = "{ style: 'polygons', color: [%d, %d, %d, %d] }";
+       const char styleFormat[] = "{ style: 'polygons', color: [%d, %d, %d, %d] }";
 
        do {
                error = maps_view_object_polygon_get_fill_color(object, &r, &g, &b, &a);