Remodify svace issue (WGID 308150) 86/197886/1
authorsinikang <sinikang@samsung.com>
Thu, 17 Jan 2019 02:39:34 +0000 (11:39 +0900)
committersinikang <sinikang@samsung.com>
Thu, 17 Jan 2019 02:39:34 +0000 (11:39 +0900)
Change-Id: Iaf88c58422d5721729d23e468cb50318683b4e66

src/time_update.c

index e6b2105e66dec6a25639cbd1957a6df7290a29d3..da25289fbde5f54abe54de193b0b8662bcddf948 100644 (file)
@@ -223,7 +223,7 @@ static gboolean __update_timezone_by_offset(const struct tnoti_network_timeinfo
        } else {
                UChar utf16_timezone[NITZ_TIMEZONE_MAX_LEN] = { 0 };
                UCalendar *cal = NULL;
-               gboolean in_dst = FALSE;
+               bool in_dst = false;
                UErrorCode ec = U_ZERO_ERROR;
                GList *list = NULL;
 
@@ -311,7 +311,7 @@ GList * nitz_get_tzlist(char *iso)
        const UChar* timezone_id = 0;
        int timezone_id_len = 0;
        int offset = 0;
-       gboolean in_dst = 0;
+       bool in_dst = false;
        GList *tz_list = NULL;
        UCalendar *cal = NULL;
        unsigned int offset_hash = 0;
@@ -330,7 +330,6 @@ GList * nitz_get_tzlist(char *iso)
 
                cal = ucal_open(timezone_id, u_strlen(timezone_id), uloc_getDefault(), UCAL_TRADITIONAL, &ec);
                in_dst = ucal_inDaylightTime(cal, &ec);
-               in_dst = (in_dst == 1) ? 1 : 0;
                offset = ucal_get(cal, UCAL_ZONE_OFFSET, &ec);
                offset_hash = (offset/1800000) + 24;
                ucal_close(cal);