X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..4f1e1a09ce4daed860e35d359ce2fceccb0764e8:/icuSources/samples/numfmt/util.cpp?ds=sidebyside diff --git a/icuSources/samples/numfmt/util.cpp b/icuSources/samples/numfmt/util.cpp index b4025444..ad6f008b 100644 --- a/icuSources/samples/numfmt/util.cpp +++ b/icuSources/samples/numfmt/util.cpp @@ -1,14 +1,20 @@ /******************************************************************** + * © 2016 and later: Unicode, Inc. and others. + * License & terms of use: http://www.unicode.org/copyright.html#License + ************************************************************************* + ************************************************************************* * COPYRIGHT: - * Copyright (c) 1999-2003, International Business Machines Corporation and + * Copyright (c) 1999-2009, International Business Machines Corporation and * others. All Rights Reserved. - ********************************************************************/ + *************************************************************************/ #include "unicode/unistr.h" #include "unicode/fmtable.h" #include #include +using namespace icu; + enum { U_SPACE=0x20, U_DQUOTE=0x22, @@ -72,7 +78,7 @@ void uprintf(const UnicodeString &str) { } printf("%s", buf); if(buf != stackBuffer) { - delete buf; + delete[] buf; } }