]> granicus.if.org Git - icu/commitdiff
ICU-9408 Use only C style comments to resolve warnings and errors
authorMichael Ow <mow@svn.icu-project.org>
Thu, 26 Jul 2012 18:25:15 +0000 (18:25 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 26 Jul 2012 18:25:15 +0000 (18:25 +0000)
X-SVN-Rev: 32069

icu4c/source/common/wintz.c

index 4b22ca27dd12f6e261a612b14dd613a6fc3e4206..a1da126a0db44b45ef4b63eb433a8da39907915e 100644 (file)
@@ -258,7 +258,7 @@ uprv_detectWindowsTimeZone() {
     int32_t len;
     int id;
     int errorCode;
-    char ISOcode[3]; //2 letter iso code 
+    char ISOcode[3]; /* 2 letter iso code */
 
     LONG result;
     TZI tziKey;
@@ -310,12 +310,12 @@ uprv_detectWindowsTimeZone() {
             tziKey.daylightBias = tziReg.daylightBias;
 
             if (uprv_memcmp((char *)&tziKey, (char*)&tziReg, sizeof(tziKey)) == 0) {
-            const UChar* icuTZ;
+                const UChar* icuTZ = NULL;
                 if (errorCode != 0) {
                     icuTZ = ures_getStringByKey(winTZ, ISOcode, &len, &status);
                 }
                 if (errorCode==0 || icuTZ==NULL) {
-                    //fallback to default "001" and reset status
+                    /* fallback to default "001" and reset status */
                     status = U_ZERO_ERROR;
                     icuTZ = ures_getStringByKey(winTZ, "001", &len, &status);
                 }
@@ -336,7 +336,7 @@ uprv_detectWindowsTimeZone() {
                      * the current time zone information)
                      */
                     if (idFound || tmpid[0] == 0) {
-                        //if icuTZ has more than one city, take only the first (i.e. terminate icuTZ at first space)
+                        /* if icuTZ has more than one city, take only the first (i.e. terminate icuTZ at first space) */
                         int index=0;
                         while (! (*icuTZ == '\0' || *icuTZ ==' ')) {
                             tmpid[index++]=*icuTZ++;