diff options
Diffstat (limited to 'i18npool/source/inputchecker')
3 files changed, 7 insertions, 10 deletions
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx index 69c8525985af..e3b72cd51413 100644 --- a/i18npool/source/inputchecker/inputsequencechecker.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker.cxx @@ -51,7 +51,7 @@ InputSequenceCheckerImpl::~InputSequenceCheckerImpl() sal_Bool SAL_CALL InputSequenceCheckerImpl::checkInputSequence(const OUString& Text, sal_Int32 nStartPos, - sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(RuntimeException, std::exception) + sal_Unicode inputChar, sal_Int16 inputCheckMode) { if (inputCheckMode == InputSequenceCheckMode::PASSTHROUGH) return true; @@ -66,7 +66,7 @@ InputSequenceCheckerImpl::checkInputSequence(const OUString& Text, sal_Int32 nSt sal_Int32 SAL_CALL InputSequenceCheckerImpl::correctInputSequence(OUString& Text, sal_Int32 nStartPos, - sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(RuntimeException, std::exception) + sal_Unicode inputChar, sal_Int16 inputCheckMode) { if (inputCheckMode != InputSequenceCheckMode::PASSTHROUGH) { sal_Char* language = getLanguageByScripType(Text[nStartPos], inputChar); @@ -105,7 +105,7 @@ InputSequenceCheckerImpl::getLanguageByScripType(sal_Unicode cChar, sal_Unicode } Reference< XExtendedInputSequenceChecker >& SAL_CALL -InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char* rLanguage) throw (RuntimeException) +InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char* rLanguage) { if (cachedItem && cachedItem->aLanguage == rLanguage) { return cachedItem->xISC; @@ -134,19 +134,19 @@ InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char* rLanguage) throw (Ru } OUString SAL_CALL -InputSequenceCheckerImpl::getImplementationName() throw( RuntimeException, std::exception ) +InputSequenceCheckerImpl::getImplementationName() { return OUString::createFromAscii(serviceName); } sal_Bool SAL_CALL -InputSequenceCheckerImpl::supportsService(const OUString& rServiceName) throw( RuntimeException, std::exception ) +InputSequenceCheckerImpl::supportsService(const OUString& rServiceName) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -InputSequenceCheckerImpl::getSupportedServiceNames() throw( RuntimeException, std::exception ) +InputSequenceCheckerImpl::getSupportedServiceNames() { Sequence< OUString > aRet { OUString::createFromAscii(serviceName) }; return aRet; diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx index c6933bbd1c9c..52f8fae5a9bb 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx @@ -112,7 +112,6 @@ InputSequenceChecker_hi::checkInputSequence(const OUString& Text, sal_Int32 nStartPos, sal_Unicode inputChar, sal_Int16 inputCheckMode) - throw(css::uno::RuntimeException, std::exception) { sal_Unicode currentChar = Text[nStartPos]; sal_uInt16 ch1 = getCharType(inputChar); @@ -126,7 +125,6 @@ InputSequenceChecker_hi::correctInputSequence(OUString& Text, sal_Int32 nStartPos, sal_Unicode inputChar, sal_Int16 inputCheckMode) - throw(css::uno::RuntimeException, std::exception) { if (checkInputSequence(Text, nStartPos, inputChar, inputCheckMode)) Text = Text.replaceAt(++nStartPos, 0, OUString(inputChar)); diff --git a/i18npool/source/inputchecker/inputsequencechecker_th.cxx b/i18npool/source/inputchecker/inputsequencechecker_th.cxx index e16a16a6b74d..660f78be0998 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_th.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_th.cxx @@ -78,7 +78,7 @@ static bool SAL_CALL check(sal_Unicode ch1, sal_Unicode ch2, sal_Int16 inputChec sal_Bool SAL_CALL InputSequenceChecker_th::checkInputSequence(const OUString& Text, sal_Int32 nStartPos, - sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(css::uno::RuntimeException, std::exception) + sal_Unicode inputChar, sal_Int16 inputCheckMode) { return check(Text[nStartPos], inputChar, inputCheckMode); } @@ -88,7 +88,6 @@ InputSequenceChecker_th::correctInputSequence(OUString& Text, sal_Int32 nStartPos, sal_Unicode inputChar, sal_Int16 inputCheckMode) - throw(css::uno::RuntimeException, std::exception) { /* 9 rules for input sequence correction, see issue i42661 for detail, |