mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 19447
This commit is contained in:
parent
73da58a35a
commit
2d662cf06c
4 changed files with 19 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2005, International Business Machines
|
||||
* Copyright (C) 2005-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -161,13 +161,13 @@ UBool IdnaConfTest::ReadOneLine(UnicodeString& buf){
|
|||
buf.remove();
|
||||
int t = 0;
|
||||
while (curOffset < len){
|
||||
if (t = isNewlineMark()) { // end of line
|
||||
if ((t = isNewlineMark())) { // end of line
|
||||
curOffset += t;
|
||||
break;
|
||||
}
|
||||
UChar c = base[curOffset];
|
||||
if (c == BACKSLASH && curOffset < len -1){ // escaped new line mark
|
||||
if (t = isNewlineMark()){
|
||||
if ((t = isNewlineMark())){
|
||||
curOffset += 1 + t; // BACKSLAH and NewlineMark
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -129,10 +129,10 @@ NumberFormatTest::TestAPI(void)
|
|||
class StubNumberForamt :public NumberFormat{
|
||||
public:
|
||||
StubNumberForamt(){};
|
||||
virtual UnicodeString& format(double number,UnicodeString& appendTo,FieldPosition& pos) const {
|
||||
virtual UnicodeString& format(double ,UnicodeString& appendTo,FieldPosition& ) const {
|
||||
return appendTo;
|
||||
}
|
||||
virtual UnicodeString& format(int32_t number,UnicodeString& appendTo,FieldPosition& pos) const {
|
||||
virtual UnicodeString& format(int32_t ,UnicodeString& appendTo,FieldPosition& ) const {
|
||||
return appendTo.append((UChar)0x0033);
|
||||
}
|
||||
virtual UnicodeString& format(int64_t number,UnicodeString& appendTo,FieldPosition& pos) const {
|
||||
|
@ -141,12 +141,12 @@ public:
|
|||
virtual UnicodeString& format(const Formattable& , UnicodeString& appendTo, FieldPosition& , UErrorCode& ) const {
|
||||
return appendTo;
|
||||
}
|
||||
virtual void parse(const UnicodeString& text,
|
||||
Formattable& result,
|
||||
ParsePosition& parsePosition) const {}
|
||||
virtual void parse( const UnicodeString& text,
|
||||
Formattable& result,
|
||||
UErrorCode& status) const {}
|
||||
virtual void parse(const UnicodeString& ,
|
||||
Formattable& ,
|
||||
ParsePosition& ) const {}
|
||||
virtual void parse( const UnicodeString& ,
|
||||
Formattable& ,
|
||||
UErrorCode& ) const {}
|
||||
virtual UClassID getDynamicClassID(void) const {
|
||||
static char classID = 0;
|
||||
return (UClassID)&classID;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 2001-2005, International Business Machines orporation
|
||||
* Copyright (C) 2001-2006, International Business Machines orporation
|
||||
* and others. All Rights Reserved.
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -2276,11 +2276,11 @@ void StringSearchTest::TestSubclass()
|
|||
class StubSearchIterator:public SearchIterator{
|
||||
public:
|
||||
StubSearchIterator(){}
|
||||
virtual void setOffset(int32_t position, UErrorCode &status) {};
|
||||
virtual void setOffset(int32_t , UErrorCode &) {};
|
||||
virtual int32_t getOffset(void) const {return 0;};
|
||||
virtual SearchIterator* safeClone(void) const {return NULL;};
|
||||
virtual int32_t handleNext(int32_t position, UErrorCode &status){return 0;};
|
||||
virtual int32_t handlePrev(int32_t position, UErrorCode &status) {return 0;};
|
||||
virtual int32_t handleNext(int32_t , UErrorCode &){return 0;};
|
||||
virtual int32_t handlePrev(int32_t , UErrorCode &) {return 0;};
|
||||
virtual UClassID getDynamicClassID() const {
|
||||
static char classID = 0;
|
||||
return (UClassID)&classID;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 2002-2004, International Business Machines
|
||||
* Copyright (C) 2002-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
* Date Name Description
|
||||
|
@ -162,10 +162,13 @@ void die(const char* msg) {
|
|||
*/
|
||||
class AliasList {
|
||||
public:
|
||||
virtual ~AliasList();
|
||||
virtual const Alias& operator[](int32_t i) const = 0;
|
||||
virtual int32_t count() const = 0;
|
||||
};
|
||||
|
||||
AliasList::~AliasList() {}
|
||||
|
||||
/**
|
||||
* A single array.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue