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:
Travis Keep 2014-06-12 20:14:04 +00:00
parent 5ab2298adc
commit b8fcbee810
2 changed files with 3 additions and 2 deletions

View File

@ -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();
/**

View File

@ -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),