ICU-4741 virtual functions can't be defined in headers.

X-SVN-Rev: 18889
This commit is contained in:
George Rhoten 2005-12-12 16:51:51 +00:00
parent 57431e677c
commit 646b6d59be
2 changed files with 7 additions and 2 deletions

View File

@ -199,7 +199,7 @@ public:
* @return TRUE if the enumerations are equal. FALSE if not.
* @draft ICU 3.6
*/
virtual UBool operator!=(const StringEnumeration& that)const {return !operator==(that);};
virtual UBool operator!=(const StringEnumeration& that)const;
protected:
/**

View File

@ -112,10 +112,15 @@ StringEnumeration::setChars(const char *s, int32_t length, UErrorCode &status) {
return NULL;
}
UBool
StringEnumeration::operator==(const StringEnumeration& that)const{
StringEnumeration::operator==(const StringEnumeration& that)const {
return getDynamicClassID() == that.getDynamicClassID();
}
UBool
StringEnumeration::operator!=(const StringEnumeration& that)const {
return !operator==(that);
}
// UStringEnumeration implementation --------------------------------------- ***
UStringEnumeration::UStringEnumeration(UEnumeration* _uenum) :