[toolchain upgrade] fixed build errors and warnings in gcc6x mode 26/104126/4 accepted/tizen/common/20161215.165817 accepted/tizen/ivi/20161215.074527 accepted/tizen/mobile/20161215.074232 accepted/tizen/tv/20161215.074300 accepted/tizen/wearable/20161215.074313 submit/tizen/20161215.035308
authorchanywa <cbible.kim@samsung.com>
Mon, 12 Dec 2016 10:39:12 +0000 (19:39 +0900)
committerchanywa <cbible.kim@samsung.com>
Wed, 14 Dec 2016 00:14:27 +0000 (09:14 +0900)
Change-Id: I918d8d9ba3acbebbc4433333f893b46c4d606347

src/view/gesture_detector.h
src/view/inertial_camera.h
src/view/inertial_gesture.h

index 46368c5..84c7f4e 100644 (file)
@@ -50,10 +50,17 @@ namespace view
                /* Half a second is a popular duration of double click in UI */
                static const unsigned int __CLICK_DURATION = 500 * __MIL_SEC;
                static const unsigned int __DOUBLE_CLICK_DURATION = __CLICK_DURATION;
+#if (__cplusplus >= 201103L)
+               static constexpr double __TAP_DURATION = 0.5;
+               /* Half a second is a popular duration of double click in UI
+               * however, sometimes it is 1 second */
+               static constexpr double __LONG_PRESS_DURATION = 0.5;
+#else
                static const double __TAP_DURATION = 0.5;
                /* Half a second is a popular duration of double click in UI
                * however, sometimes it is 1 second */
                static const double __LONG_PRESS_DURATION = 0.5;
+#endif
 
        public:
 
index 29ef53a..54b37f7 100644 (file)
@@ -38,9 +38,15 @@ namespace view
                /* Is transition performing right now */
                bool transiting;
        protected:
+#if (__cplusplus >= 201103L)
+               static constexpr double __GEO_ACCURACY = 0.00001;
+               static constexpr double __ZOOM_ACCURACY = 0.1;
+               static constexpr double __ROTATE_ACCURACY = 0.5;
+#else
                static const double __GEO_ACCURACY = 0.00001;
                static const double __ZOOM_ACCURACY = 0.1;
                static const double __ROTATE_ACCURACY = 0.5;
+#endif
        public:
                inertial_camera(maps_view_h view);
                ~inertial_camera();
index 3b2f19e..23be5ed 100644 (file)
@@ -38,7 +38,11 @@ namespace view
                unsigned transiting_start[MAX_FINGERS];
                double _dt[MAX_FINGERS];
        private:
+#if (__cplusplus >= 201103L)
+               static constexpr double __ACCURACY = 1;
+#else
                static const double __ACCURACY = 1;
+#endif
        public:
                inertial_gesture(maps_view_h view);
                ~inertial_gesture();