ICU-10884 Fix compile warnings around not initializing base class in copy constructor for RelativeDateTimeFormatter and SharedObject.
X-SVN-Rev: 35871
This commit is contained in:
parent
5ab2298adc
commit
b8fcbee810
@ -30,7 +30,7 @@ public:
|
||||
SharedObject() : refCount(0) {}
|
||||
|
||||
/** Initializes refCount to 0. */
|
||||
SharedObject(const SharedObject &/*other*/) : refCount(0) {}
|
||||
SharedObject(const SharedObject &other) : UObject(other), refCount(0) {}
|
||||
virtual ~SharedObject();
|
||||
|
||||
/**
|
||||
|
@ -726,7 +726,8 @@ RelativeDateTimeFormatter::RelativeDateTimeFormatter(
|
||||
|
||||
RelativeDateTimeFormatter::RelativeDateTimeFormatter(
|
||||
const RelativeDateTimeFormatter& other)
|
||||
: fCache(other.fCache),
|
||||
: UObject(other),
|
||||
fCache(other.fCache),
|
||||
fNumberFormat(other.fNumberFormat),
|
||||
fPluralRules(other.fPluralRules),
|
||||
fStyle(other.fStyle),
|
||||
|
Loading…
Reference in New Issue
Block a user