From 54b3663247cd308e12881016378e8cb2a223d012 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 4 Sep 2006 17:15:14 +0000 Subject: [PATCH] ICU-5304 Allow source code to work again without using U_NAMESPACE_USE in public headers X-SVN-Rev: 20247 --- icu4c/source/i18n/uregexc.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/uregexc.cpp b/icu4c/source/i18n/uregexc.cpp index 837bab0fcdc..6590020661e 100644 --- a/icu4c/source/i18n/uregexc.cpp +++ b/icu4c/source/i18n/uregexc.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2003-2005, International Business Machines +* Copyright (C) 2003-2006, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * file name: regexc.cpp @@ -12,6 +12,8 @@ #include "unicode/uregex.h" #include "unicode/unistr.h" +U_NAMESPACE_USE + //---------------------------------------------------------------------------------------- // // uregex_openC @@ -33,7 +35,6 @@ uregex_openC( const char *pattern, } UnicodeString patString(pattern); - URegularExpression *re = uregex_open(patString.getBuffer(), patString.length(), flags, pe, status); - return re; + return uregex_open(patString.getBuffer(), patString.length(), flags, pe, status); } #endif