From 39881d8f7b2cbe351e069f683db3f77344605cdc Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Wed, 24 Feb 2010 19:46:03 +0000 Subject: [PATCH] ICU-7311 Replace tab character with spaces in changes from the patch. X-SVN-Rev: 27652 --- icu4c/source/samples/ucnv/convsamp.cpp | 4 ++-- icu4c/source/samples/ugrep/ugrep.cpp | 2 +- icu4c/source/test/cintltst/bocu1tst.c | 2 +- icu4c/source/test/cintltst/udatatst.c | 2 +- icu4c/source/test/perf/collationperf/collperf.cpp | 4 ++-- icu4c/source/tools/gencfu/gencfu.cpp | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/icu4c/source/samples/ucnv/convsamp.cpp b/icu4c/source/samples/ucnv/convsamp.cpp index 99cb4dfb32..506a1b6448 100644 --- a/icu4c/source/samples/ucnv/convsamp.cpp +++ b/icu4c/source/samples/ucnv/convsamp.cpp @@ -897,7 +897,7 @@ UErrorCode convsample_40() if(!out) { fprintf(stderr, "Couldn't create file 'data40.utf16'.\n"); - fclose(f); + fclose(f); return U_FILE_ACCESS_ERROR; } @@ -1003,7 +1003,7 @@ UErrorCode convsample_46() if(!out) { fprintf(stderr, "Couldn't create file 'data46.out'.\n"); - fclose(f); + fclose(f); return U_FILE_ACCESS_ERROR; } diff --git a/icu4c/source/samples/ugrep/ugrep.cpp b/icu4c/source/samples/ugrep/ugrep.cpp index 752df4c474..4f920137b7 100644 --- a/icu4c/source/samples/ugrep/ugrep.cpp +++ b/icu4c/source/samples/ugrep/ugrep.cpp @@ -287,7 +287,7 @@ void readFile(const char *name) { int t = fread(charBuf, 1, rawFileLen, file); if (t != rawFileLen) { fprintf(stderr, "Error reading file \"%s\"\n", fileName); - fclose(file); + fclose(file); return; } charBuf[rawFileLen]=0; diff --git a/icu4c/source/test/cintltst/bocu1tst.c b/icu4c/source/test/cintltst/bocu1tst.c index 03a6f56c75..6189af2ce5 100644 --- a/icu4c/source/test/cintltst/bocu1tst.c +++ b/icu4c/source/test/cintltst/bocu1tst.c @@ -906,7 +906,7 @@ roundtripBOCU1(UConverter *bocu1, int32_t number, const UChar *text, int32_t len /* BOCU-1 -> Unicode */ roundtripRefLength=readString((uint8_t *)bocu1Ref, bocu1RefLength, roundtripRef); if(roundtripRefLength<0) { - free(roundtripICU); + free(roundtripICU); return; /* readString() found an error and reported it */ } diff --git a/icu4c/source/test/cintltst/udatatst.c b/icu4c/source/test/cintltst/udatatst.c index e09fad2fb2..8da19a4a57 100644 --- a/icu4c/source/test/cintltst/udatatst.c +++ b/icu4c/source/test/cintltst/udatatst.c @@ -136,7 +136,7 @@ static void TestUDataOpen(){ const char* testPath=loadTestData(&status); if(U_FAILURE(status)) { log_data_err("Could not load testdata.dat, status = %s\n", u_errorName(status)); - free(path); + free(path); return; } diff --git a/icu4c/source/test/perf/collationperf/collperf.cpp b/icu4c/source/test/perf/collationperf/collperf.cpp index 6a4f7ad4ca..c9dd6c48e6 100644 --- a/icu4c/source/test/perf/collationperf/collperf.cpp +++ b/icu4c/source/test/perf/collationperf/collperf.cpp @@ -808,8 +808,8 @@ void doKeyHist() { (float)accumulatedLen[i] / (float)(numKeysOfSize[i] * i)); } } - delete []accumulatedLen; - delete []numKeysOfSize ; + delete []accumulatedLen; + delete []numKeysOfSize ; } //--------------------------------------------------------------------------------------- diff --git a/icu4c/source/tools/gencfu/gencfu.cpp b/icu4c/source/tools/gencfu/gencfu.cpp index 7e92f76ada..954cb117ab 100644 --- a/icu4c/source/tools/gencfu/gencfu.cpp +++ b/icu4c/source/tools/gencfu/gencfu.cpp @@ -319,7 +319,7 @@ int main(int argc, char **argv) { long t = fread(result, 1, fileSize, file); if (t != fileSize) { delete [] result; - fclose(file); + close(file); return NULL; } result[fileSize]=0;