From 79d6c8fd5e3b2fb02274f7956e44f885c7705b17 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 1 Dec 2003 05:33:41 +0000 Subject: [PATCH] ICU-3222 Fix some compiler warnings. X-SVN-Rev: 13906 --- icu4c/source/i18n/funcrepl.cpp | 5 ++++- icu4c/source/i18n/strmatch.cpp | 4 +++- icu4c/source/i18n/strrepl.cpp | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/funcrepl.cpp b/icu4c/source/i18n/funcrepl.cpp index 742a14662db..70f9f6f952c 100644 --- a/icu4c/source/i18n/funcrepl.cpp +++ b/icu4c/source/i18n/funcrepl.cpp @@ -38,7 +38,10 @@ FunctionReplacer::FunctionReplacer(Transliterator* adoptedTranslit, /** * Copy constructor. */ -FunctionReplacer::FunctionReplacer(const FunctionReplacer& other) { +FunctionReplacer::FunctionReplacer(const FunctionReplacer& other) : + UnicodeFunctor(other), + UnicodeReplacer(other) +{ translit = other.translit->clone(); replacer = other.replacer->clone(); } diff --git a/icu4c/source/i18n/strmatch.cpp b/icu4c/source/i18n/strmatch.cpp index 109cf8a8fd6..2c3a1f950a0 100644 --- a/icu4c/source/i18n/strmatch.cpp +++ b/icu4c/source/i18n/strmatch.cpp @@ -35,7 +35,9 @@ StringMatcher::StringMatcher(const UnicodeString& theString, } StringMatcher::StringMatcher(const StringMatcher& o) : + UnicodeFunctor(o), UnicodeMatcher(o), + UnicodeReplacer(o), pattern(o.pattern), data(o.data), segmentNumber(o.segmentNumber), @@ -254,7 +256,7 @@ UnicodeString& StringMatcher::toReplacerPattern(UnicodeString& rule, * into the given set. * @param toUnionTo the set into which to union the output characters */ -void StringMatcher::addReplacementSetTo(UnicodeSet& toUnionTo) const { +void StringMatcher::addReplacementSetTo(UnicodeSet& /*toUnionTo*/) const { // The output of this replacer varies; it is the source text between // matchStart and matchLimit. Since this varies depending on the // input text, we can't compute it here. We can either do nothing diff --git a/icu4c/source/i18n/strrepl.cpp b/icu4c/source/i18n/strrepl.cpp index 0216111bf10..f117cc7f4e6 100644 --- a/icu4c/source/i18n/strrepl.cpp +++ b/icu4c/source/i18n/strrepl.cpp @@ -66,7 +66,10 @@ StringReplacer::StringReplacer(const UnicodeString& theOutput, /** * Copy constructor. */ -StringReplacer::StringReplacer(const StringReplacer& other) { +StringReplacer::StringReplacer(const StringReplacer& other) : + UnicodeFunctor(other), + UnicodeReplacer(other) +{ output = other.output; cursorPos = other.cursorPos; hasCursor = other.hasCursor;