ICU-3500 Fix some compiler warnings.
X-SVN-Rev: 15063
This commit is contained in:
parent
24ec84cb98
commit
6d74051e89
@ -253,12 +253,12 @@ protected:
|
||||
// * @param myParent The name of the myClass's parent.
|
||||
// * @internal
|
||||
// */
|
||||
// #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
// UClassID myClass::getStaticClassID() { \
|
||||
// static const UClassID CLASS = (UClassID)myParent::getStaticClassID(); \
|
||||
// return (UClassID)&CLASS; \
|
||||
// }
|
||||
//
|
||||
/* #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
UClassID myClass::getStaticClassID() { \
|
||||
static const UClassID CLASS = (UClassID)myParent::getStaticClassID(); \
|
||||
return (UClassID)&CLASS; \
|
||||
}
|
||||
*/
|
||||
// /**
|
||||
// * This macro adds ICU RTTI to an ICU concrete class implementation.
|
||||
// * This macro should be invoked in *.cpp files. The corresponding
|
||||
@ -268,12 +268,12 @@ protected:
|
||||
// * @param myParent The name of the myClass's parent.
|
||||
// * @internal
|
||||
// */
|
||||
// #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
// UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
// UClassID myClass::getDynamicClassID() const { \
|
||||
// return myClass::getStaticClassID(); \
|
||||
// }
|
||||
|
||||
/*#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
|
||||
UClassID myClass::getDynamicClassID() const { \
|
||||
return myClass::getStaticClassID(); \
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -252,14 +252,14 @@ ucharstrenum_close(UEnumeration* en) {
|
||||
|
||||
static int32_t U_CALLCONV
|
||||
ucharstrenum_count(UEnumeration* en,
|
||||
UErrorCode* ec) {
|
||||
UErrorCode* /*ec*/) {
|
||||
return ((UCharStringEnumeration*)en)->count;
|
||||
}
|
||||
|
||||
static const char* U_CALLCONV
|
||||
ucharstrenum_next(UEnumeration* en,
|
||||
int32_t* resultLength,
|
||||
UErrorCode* ec) {
|
||||
UErrorCode* /*ec*/) {
|
||||
UCharStringEnumeration *e = (UCharStringEnumeration*) en;
|
||||
if (e->index >= e->count) {
|
||||
return NULL;
|
||||
@ -273,7 +273,7 @@ ucharstrenum_next(UEnumeration* en,
|
||||
|
||||
static void U_CALLCONV
|
||||
ucharstrenum_reset(UEnumeration* en,
|
||||
UErrorCode* ec) {
|
||||
UErrorCode* /*ec*/) {
|
||||
((UCharStringEnumeration*)en)->index = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user