ICU-900 Fix for some compiler warnings. Now the build system won't complain about UParseError

X-SVN-Rev: 7841
This commit is contained in:
George Rhoten 2002-03-01 21:56:40 +00:00
parent 41281e861f
commit dfe29d99fd
3 changed files with 8 additions and 2 deletions

View file

@ -82,10 +82,13 @@ CompoundTransliterator::CompoundTransliterator(const UnicodeString& id,
* ID.
*/
CompoundTransliterator::CompoundTransliterator(UVector& list,
UParseError& /*parseError*/,
UErrorCode& status) :
Transliterator(EMPTY, NULL),
trans(0), compoundRBTIndex(-1)
{
// TODO add code for parseError...currently unused, but
// later may be used by parsing code...
init(list, UTRANS_FORWARD, FALSE, status);
// assume caller will fixup ID
}

View file

@ -892,6 +892,8 @@ Transliterator* Transliterator::createInstance(const UnicodeString& ID,
}
UnicodeSet* globalFilter;
// TODO add code for parseError...currently unused, but
// later may be used by parsing code...
if (!TransliteratorIDParser::parseCompoundID(ID, dir, canonID, list, globalFilter)) {
status = U_INVALID_ID;
return NULL;
@ -909,7 +911,7 @@ Transliterator* Transliterator::createInstance(const UnicodeString& ID,
t = (Transliterator*) list.elementAt(0);
break;
default:
t = new CompoundTransliterator(list, status);
t = new CompoundTransliterator(list, parseError, status);
if (U_FAILURE(status)) {
delete t;
return NULL;

View file

@ -32,7 +32,7 @@ class TransliteratorRegistry;
* <p>Copyright &copy; IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
* @version $RCSfile: cpdtrans.h,v $ $Revision: 1.27 $ $Date: 2002/02/20 00:01:30 $
* @version $RCSfile: cpdtrans.h,v $ $Revision: 1.28 $ $Date: 2002/03/01 21:56:40 $
* @deprecated To be removed after 2002-sep-30.
*/
class U_I18N_API CompoundTransliterator : public Transliterator {
@ -187,6 +187,7 @@ private:
* Private constructor for Transliterator.
*/
CompoundTransliterator(UVector& list,
UParseError& parseError,
UErrorCode& status);
void init(const UnicodeString& id,