summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-12 08:21:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-15 14:05:41 +0000
commit6e72f0251bb8767942edf74f612547c12ca0cdf1 (patch)
tree0785de1a2f8995d1d4ede7889541bda9b59f893f /i18npool
parent7da80de2c75e048a08ea6e923a9f433a638a9f12 (diff)
new loplugin unnecessary override
Change-Id: I88d3e33823d68745b98625050a8a274f9ef04bcb Reviewed-on: https://gerrit.libreoffice.org/27135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/inc/transliteration_OneToOne.hxx28
-rw-r--r--i18npool/source/transliteration/halfwidthToFullwidth.cxx22
2 files changed, 25 insertions, 25 deletions
diff --git a/i18npool/inc/transliteration_OneToOne.hxx b/i18npool/inc/transliteration_OneToOne.hxx
index 2ef7c973481c..98b380aa8a14 100644
--- a/i18npool/inc/transliteration_OneToOne.hxx
+++ b/i18npool/inc/transliteration_OneToOne.hxx
@@ -74,11 +74,33 @@ public: \
};
TRANSLITERATION_ONETOONE( fullwidthToHalfwidth )
-TRANSLITERATION_ONETOONE(halfwidthToFullwidth)
TRANSLITERATION_ONETOONE( fullwidthKatakanaToHalfwidthKatakana )
-TRANSLITERATION_ONETOONE(halfwidthKatakanaToFullwidthKatakana)
TRANSLITERATION_ONETOONE( fullwidthToHalfwidthLikeASC )
-TRANSLITERATION_ONETOONE( halfwidthToFullwidthLikeJIS )
+
+class halfwidthToFullwidth : public transliteration_OneToOne
+{
+public:
+ halfwidthToFullwidth();
+ OUString SAL_CALL
+ transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset )
+ throw(css::uno::RuntimeException, std::exception) override;
+};
+class halfwidthKatakanaToFullwidthKatakana : public transliteration_OneToOne
+{
+public:
+ halfwidthKatakanaToFullwidthKatakana();
+ OUString SAL_CALL
+ transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset )
+ throw(css::uno::RuntimeException, std::exception) override;
+};
+class halfwidthToFullwidthLikeJIS : public transliteration_OneToOne
+{
+public:
+ halfwidthToFullwidthLikeJIS();
+ OUString SAL_CALL
+ transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset )
+ throw(css::uno::RuntimeException, std::exception) override;
+};
#undef TRANSLITERATION_ONETOONE
diff --git a/i18npool/source/transliteration/halfwidthToFullwidth.cxx b/i18npool/source/transliteration/halfwidthToFullwidth.cxx
index 4410525539b5..f422dd387f85 100644
--- a/i18npool/source/transliteration/halfwidthToFullwidth.cxx
+++ b/i18npool/source/transliteration/halfwidthToFullwidth.cxx
@@ -49,14 +49,6 @@ halfwidthToFullwidth::transliterate( const OUString& inStr, sal_Int32 startPos,
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset );
}
-sal_Unicode SAL_CALL
-halfwidthToFullwidth::transliterateChar2Char( sal_Unicode inChar)
- throw(RuntimeException, MultipleCharsOutputException, std::exception)
-{
- return transliteration_OneToOne::transliterateChar2Char(inChar);
-}
-
-
halfwidthKatakanaToFullwidthKatakana::halfwidthKatakanaToFullwidthKatakana()
{
func = nullptr;
@@ -79,14 +71,6 @@ halfwidthKatakanaToFullwidthKatakana::transliterate( const OUString& inStr, sal_
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset );
}
-sal_Unicode SAL_CALL
-halfwidthKatakanaToFullwidthKatakana::transliterateChar2Char( sal_Unicode inChar)
- throw(RuntimeException, MultipleCharsOutputException, std::exception)
-{
- return transliteration_OneToOne::transliterateChar2Char(inChar);
-}
-
-
halfwidthToFullwidthLikeJIS::halfwidthToFullwidthLikeJIS()
{
func = nullptr;
@@ -109,12 +93,6 @@ halfwidthToFullwidthLikeJIS::transliterate( const OUString& inStr, sal_Int32 sta
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset, WIDTHFOLDNIG_DONT_USE_COMBINED_VU );
}
-sal_Unicode SAL_CALL
-halfwidthToFullwidthLikeJIS::transliterateChar2Char( sal_Unicode inChar)
- throw(RuntimeException, MultipleCharsOutputException, std::exception)
-{
- return transliteration_OneToOne::transliterateChar2Char(inChar);
-}
} } } }