From e9a31307050b399a67e31ef3f2dd803f5e3846b4 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 15 Jun 2007 17:21:17 +0000 Subject: [PATCH] ICU-5410 Improve code coverage by turning a stack array into a static const array. X-SVN-Rev: 21749 --- icu4c/source/i18n/windtfmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/windtfmt.cpp b/icu4c/source/i18n/windtfmt.cpp index 19766b1f637..5e37e4156bc 100644 --- a/icu4c/source/i18n/windtfmt.cpp +++ b/icu4c/source/i18n/windtfmt.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************** -* Copyright (C) 2005-2006, International Business Machines +* Copyright (C) 2005-2007, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * @@ -69,7 +69,7 @@ UnicodeString *getTimeDateFormat(const Calendar *cal, const Locale *locale, UErr } if (U_FAILURE(status)) { - UChar defaultPattern[] = {0x007B, 0x0031, 0x007D, 0x0020, 0x007B, 0x0030, 0x007D, 0x0000}; // "{1} {0}" + static const UChar defaultPattern[] = {0x007B, 0x0031, 0x007D, 0x0020, 0x007B, 0x0030, 0x007D, 0x0000}; // "{1} {0}" return new UnicodeString(defaultPattern, ARRAY_SIZE(defaultPattern)); }