mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 19401
This commit is contained in:
parent
d2246109e4
commit
aeb583804c
1 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 1997-2005, International Business Machines
|
||||
* Copyright (C) 1997-2006, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
******************************************************************************
|
||||
* file name: nfsubs.h
|
||||
|
@ -472,6 +472,13 @@ class NumeratorSubstitution : public NFSubstitution {
|
|||
int64_t ldenominator;
|
||||
UBool withZeros;
|
||||
public:
|
||||
static inline UnicodeString fixdesc(const UnicodeString& desc) {
|
||||
if (desc.endsWith(LTLT, 2)) {
|
||||
UnicodeString result(desc, 0, desc.length()-1);
|
||||
return result;
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
NumeratorSubstitution(int32_t _pos,
|
||||
double _denominator,
|
||||
const NFRuleSet* _ruleSet,
|
||||
|
@ -504,13 +511,6 @@ public:
|
|||
private:
|
||||
static const char fgClassID;
|
||||
static const UChar LTLT[2];
|
||||
static UnicodeString fixdesc(const UnicodeString& desc) {
|
||||
if (desc.endsWith(LTLT, 2)) {
|
||||
UnicodeString result(desc, 0, desc.length()-1);
|
||||
return result;
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
public:
|
||||
static UClassID getStaticClassID(void) { return (UClassID)&fgClassID; }
|
||||
|
|
Loading…
Add table
Reference in a new issue