From b8fcbee8108c257bc1f7cc5dc10c36991dab6ede Mon Sep 17 00:00:00 2001 From: Travis Keep Date: Thu, 12 Jun 2014 20:14:04 +0000 Subject: [PATCH] ICU-10884 Fix compile warnings around not initializing base class in copy constructor for RelativeDateTimeFormatter and SharedObject. X-SVN-Rev: 35871 --- icu4c/source/common/sharedobject.h | 2 +- icu4c/source/i18n/reldatefmt.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/sharedobject.h b/icu4c/source/common/sharedobject.h index 203a3387be..ed79a6a73e 100644 --- a/icu4c/source/common/sharedobject.h +++ b/icu4c/source/common/sharedobject.h @@ -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(); /** diff --git a/icu4c/source/i18n/reldatefmt.cpp b/icu4c/source/i18n/reldatefmt.cpp index 1ad63fe111..9041dba21f 100644 --- a/icu4c/source/i18n/reldatefmt.cpp +++ b/icu4c/source/i18n/reldatefmt.cpp @@ -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),