mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3222 Fix some compiler warnings.
X-SVN-Rev: 13906
This commit is contained in:
parent
1ae340bc09
commit
79d6c8fd5e
3 changed files with 11 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue