diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /i18npool/source/characterclassification/characterclassificationImpl.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'i18npool/source/characterclassification/characterclassificationImpl.cxx')
-rw-r--r-- | i18npool/source/characterclassification/characterclassificationImpl.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx index 068fb0c6fce8..d2dd5be130e6 100644 --- a/i18npool/source/characterclassification/characterclassificationImpl.cxx +++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx @@ -44,28 +44,28 @@ CharacterClassificationImpl::~CharacterClassificationImpl() { OUString SAL_CALL CharacterClassificationImpl::toUpper( const OUString& Text, sal_Int32 nPos, - sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException) + sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->toUpper(Text, nPos, nCount, rLocale); } OUString SAL_CALL CharacterClassificationImpl::toLower( const OUString& Text, sal_Int32 nPos, - sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException) + sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->toLower(Text, nPos, nCount, rLocale); } OUString SAL_CALL CharacterClassificationImpl::toTitle( const OUString& Text, sal_Int32 nPos, - sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException) + sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->toTitle(Text, nPos, nCount, rLocale); } sal_Int16 SAL_CALL CharacterClassificationImpl::getType( const OUString& Text, sal_Int32 nPos ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { if (xUCI.is()) return xUCI->getType(Text, nPos); @@ -74,7 +74,7 @@ CharacterClassificationImpl::getType( const OUString& Text, sal_Int32 nPos ) sal_Int16 SAL_CALL CharacterClassificationImpl::getCharacterDirection( const OUString& Text, sal_Int32 nPos ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { if (xUCI.is()) return xUCI->getCharacterDirection(Text, nPos); @@ -83,7 +83,7 @@ CharacterClassificationImpl::getCharacterDirection( const OUString& Text, sal_In sal_Int16 SAL_CALL CharacterClassificationImpl::getScript( const OUString& Text, sal_Int32 nPos ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { if (xUCI.is()) return xUCI->getScript(Text, nPos); @@ -92,14 +92,14 @@ CharacterClassificationImpl::getScript( const OUString& Text, sal_Int32 nPos ) sal_Int32 SAL_CALL CharacterClassificationImpl::getCharacterType( const OUString& Text, sal_Int32 nPos, - const Locale& rLocale ) throw(RuntimeException) + const Locale& rLocale ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->getCharacterType(Text, nPos, rLocale); } sal_Int32 SAL_CALL CharacterClassificationImpl::getStringType( const OUString& Text, sal_Int32 nPos, - sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException) + sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->getStringType(Text, nPos, nCount, rLocale); } @@ -108,7 +108,7 @@ ParseResult SAL_CALL CharacterClassificationImpl::parseAnyToken( const OUString& Text, sal_Int32 nPos, const Locale& rLocale, sal_Int32 startCharTokenType, const OUString& userDefinedCharactersStart, sal_Int32 contCharTokenType, const OUString& userDefinedCharactersCont ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->parseAnyToken(Text, nPos, rLocale, startCharTokenType,userDefinedCharactersStart, @@ -120,7 +120,7 @@ ParseResult SAL_CALL CharacterClassificationImpl::parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text, sal_Int32 nPos, const Locale& rLocale, sal_Int32 startCharTokenType, const OUString& userDefinedCharactersStart, sal_Int32 contCharTokenType, - const OUString& userDefinedCharactersCont ) throw(RuntimeException) + const OUString& userDefinedCharactersCont ) throw(RuntimeException, std::exception) { return getLocaleSpecificCharacterClassification(rLocale)->parsePredefinedToken( nTokenType, Text, nPos, rLocale, startCharTokenType, userDefinedCharactersStart, @@ -193,20 +193,20 @@ CharacterClassificationImpl::getLocaleSpecificCharacterClassification(const Loca OUString SAL_CALL CharacterClassificationImpl::getImplementationName(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return OUString("com.sun.star.i18n.CharacterClassification"); } sal_Bool SAL_CALL CharacterClassificationImpl::supportsService(const OUString& rServiceName) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -CharacterClassificationImpl::getSupportedServiceNames(void) throw( RuntimeException ) +CharacterClassificationImpl::getSupportedServiceNames(void) throw( RuntimeException, std::exception ) { Sequence< OUString > aRet(1); aRet[0] = OUString("com.sun.star.i18n.CharacterClassification"); |