From aeb583804c248c826029017dd1b74f5342691b1c Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 22 Mar 2006 07:57:49 +0000 Subject: [PATCH] ICU-4707 Fix some compiler warnings. X-SVN-Rev: 19401 --- icu4c/source/i18n/nfsubs.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/icu4c/source/i18n/nfsubs.h b/icu4c/source/i18n/nfsubs.h index dc7ec0ee13b..14c60e78825 100644 --- a/icu4c/source/i18n/nfsubs.h +++ b/icu4c/source/i18n/nfsubs.h @@ -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; }