X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..3d1f044b704633e2e541231cd17ae9ecf9ad5c7a:/icuSources/samples/datefmt/util.cpp diff --git a/icuSources/samples/datefmt/util.cpp b/icuSources/samples/datefmt/util.cpp index 25a8f022..240b405f 100644 --- a/icuSources/samples/datefmt/util.cpp +++ b/icuSources/samples/datefmt/util.cpp @@ -1,13 +1,19 @@ /******************************************************************** + * © 2016 and later: Unicode, Inc. and others. + * License & terms of use: http://www.unicode.org/copyright.html#License + ************************************************************************* + ************************************************************************* * COPYRIGHT: - * Copyright (c) 1999-2002, International Business Machines Corporation and + * Copyright (c) 1999-2003, International Business Machines Corporation and * others. All Rights Reserved. - ********************************************************************/ + *************************************************************************/ #include "unicode/unistr.h" #include #include +using namespace icu; + // Verify that a UErrorCode is successful; exit(1) if not void check(UErrorCode& status, const char* msg) { if (U_FAILURE(status)) { @@ -59,5 +65,5 @@ void uprintf(const UnicodeString &str) { actualLen = str.extract(0, len, buf/*, bufLen*/); // Default codepage conversion buf[actualLen] = 0; printf("%s", buf); - delete buf; + delete[] buf; }