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/indexentry | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'i18npool/source/indexentry')
5 files changed, 39 insertions, 39 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx index 2e9f70b421f5..8da071164869 100644 --- a/i18npool/source/indexentry/indexentrysupplier.cxx +++ b/i18npool/source/indexentry/indexentrysupplier.cxx @@ -32,18 +32,18 @@ IndexEntrySupplier::IndexEntrySupplier( const Reference < XComponentContext >& r { } -Sequence < Locale > SAL_CALL IndexEntrySupplier::getLocaleList() throw (RuntimeException) +Sequence < Locale > SAL_CALL IndexEntrySupplier::getLocaleList() throw (RuntimeException, std::exception) { return LocaleDataImpl().getAllInstalledLocaleNames(); } -Sequence < OUString > SAL_CALL IndexEntrySupplier::getAlgorithmList( const Locale& rLocale ) throw (RuntimeException) +Sequence < OUString > SAL_CALL IndexEntrySupplier::getAlgorithmList( const Locale& rLocale ) throw (RuntimeException, std::exception) { return LocaleDataImpl().getIndexAlgorithm(rLocale); } sal_Bool SAL_CALL IndexEntrySupplier::loadAlgorithm( const Locale& rLocale, const OUString& SortAlgorithm, - sal_Int32 collatorOptions ) throw (RuntimeException) + sal_Int32 collatorOptions ) throw (RuntimeException, std::exception) { Sequence < OUString > algorithmList = getAlgorithmList( rLocale ); for (sal_Int32 i = 0; i < algorithmList.getLength(); i++) { @@ -55,13 +55,13 @@ sal_Bool SAL_CALL IndexEntrySupplier::loadAlgorithm( const Locale& rLocale, cons return sal_False; } -sal_Bool SAL_CALL IndexEntrySupplier::usePhoneticEntry( const Locale& rLocale ) throw (RuntimeException) +sal_Bool SAL_CALL IndexEntrySupplier::usePhoneticEntry( const Locale& rLocale ) throw (RuntimeException, std::exception) { return LocaleDataImpl().hasPhonetic(rLocale); } OUString SAL_CALL IndexEntrySupplier::getPhoneticCandidate( const OUString& rIndexEntry, - const Locale& rLocale ) throw (RuntimeException) + const Locale& rLocale ) throw (RuntimeException, std::exception) { if (getLocaleSpecificIndexEntrySupplier(rLocale, OUString()).is()) return xIES->getPhoneticCandidate(rIndexEntry, rLocale); @@ -70,7 +70,7 @@ OUString SAL_CALL IndexEntrySupplier::getPhoneticCandidate( const OUString& rInd } OUString SAL_CALL IndexEntrySupplier::getIndexKey( const OUString& rIndexEntry, - const OUString& rPhoneticEntry, const Locale& rLocale ) throw (RuntimeException) + const OUString& rPhoneticEntry, const Locale& rLocale ) throw (RuntimeException, std::exception) { if (xIES.is()) return xIES->getIndexKey(rIndexEntry, rPhoneticEntry, rLocale); @@ -81,7 +81,7 @@ OUString SAL_CALL IndexEntrySupplier::getIndexKey( const OUString& rIndexEntry, sal_Int16 SAL_CALL IndexEntrySupplier::compareIndexEntry( const OUString& rIndexEntry1, const OUString& rPhoneticEntry1, const Locale& rLocale1, const OUString& rIndexEntry2, const OUString& rPhoneticEntry2, const Locale& rLocale2 ) -throw (com::sun::star::uno::RuntimeException) +throw (com::sun::star::uno::RuntimeException, std::exception) { if (xIES.is()) return xIES->compareIndexEntry(rIndexEntry1, rPhoneticEntry1, rLocale1, @@ -92,7 +92,7 @@ throw (com::sun::star::uno::RuntimeException) OUString SAL_CALL IndexEntrySupplier::getIndexCharacter( const OUString& rIndexEntry, const Locale& rLocale, const OUString& rSortAlgorithm ) -throw (RuntimeException) +throw (RuntimeException, std::exception) { return getLocaleSpecificIndexEntrySupplier(rLocale, rSortAlgorithm)-> getIndexCharacter( rIndexEntry, rLocale, rSortAlgorithm ); @@ -165,7 +165,7 @@ IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier(const Locale& rLocale, c } OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePages, - const Locale& rLocale ) throw (RuntimeException) + const Locale& rLocale ) throw (RuntimeException, std::exception) { Sequence< OUString > aFollowPageWords = LocaleDataImpl().getFollowPageWords(rLocale); @@ -177,19 +177,19 @@ OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePage #define implementationName "com.sun.star.i18n.IndexEntrySupplier" OUString SAL_CALL -IndexEntrySupplier::getImplementationName() throw( RuntimeException ) +IndexEntrySupplier::getImplementationName() throw( RuntimeException, std::exception ) { return OUString::createFromAscii( implementationName ); } sal_Bool SAL_CALL -IndexEntrySupplier::supportsService(const OUString& rServiceName) throw( RuntimeException ) +IndexEntrySupplier::supportsService(const OUString& rServiceName) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -IndexEntrySupplier::getSupportedServiceNames() throw( RuntimeException ) +IndexEntrySupplier::getSupportedServiceNames() throw( RuntimeException, std::exception ) { Sequence< OUString > aRet(1); aRet[0] = OUString::createFromAscii( implementationName ); diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx index 4df4d24c309f..ba59c47d92bb 100644 --- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx @@ -78,7 +78,7 @@ sal_uInt16** get_zh_zhuyin(sal_Int16*); OUString SAL_CALL IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry, - const Locale& rLocale, const OUString& rAlgorithm ) throw (RuntimeException) + const Locale& rLocale, const OUString& rAlgorithm ) throw (RuntimeException, std::exception) { sal_Int32 i=0; sal_uInt32 ch = rIndexEntry.iterateCodePoints(&i, 0); @@ -133,7 +133,7 @@ IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry, OUString SAL_CALL IndexEntrySupplier_asian::getIndexKey( const OUString& rIndexEntry, - const OUString& rPhoneticEntry, const Locale& rLocale) throw (RuntimeException) + const OUString& rPhoneticEntry, const Locale& rLocale) throw (RuntimeException, std::exception) { return getIndexCharacter(getEntry(rIndexEntry, rPhoneticEntry, rLocale), rLocale, aAlgorithm); } @@ -142,7 +142,7 @@ sal_Int16 SAL_CALL IndexEntrySupplier_asian::compareIndexEntry( const OUString& rIndexEntry1, const OUString& rPhoneticEntry1, const Locale& rLocale1, const OUString& rIndexEntry2, const OUString& rPhoneticEntry2, const Locale& rLocale2 ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { sal_Int32 result = collator->compareString(getEntry(rIndexEntry1, rPhoneticEntry1, rLocale1), getEntry(rIndexEntry2, rPhoneticEntry2, rLocale2)); @@ -158,7 +158,7 @@ IndexEntrySupplier_asian::compareIndexEntry( OUString SAL_CALL IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry, - const Locale& rLocale ) throw (RuntimeException) + const Locale& rLocale ) throw (RuntimeException, std::exception) { sal_uInt16 **(*func)(sal_Int16*)=NULL; #ifndef DISABLE_DYNLOADING diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx index fc8cc8ddbcca..c330ed582e0c 100644 --- a/i18npool/source/indexentry/indexentrysupplier_common.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx @@ -40,29 +40,29 @@ IndexEntrySupplier_Common::~IndexEntrySupplier_Common() delete collator; } -Sequence < lang::Locale > SAL_CALL IndexEntrySupplier_Common::getLocaleList() throw (RuntimeException) +Sequence < lang::Locale > SAL_CALL IndexEntrySupplier_Common::getLocaleList() throw (RuntimeException, std::exception) { throw RuntimeException(); } -Sequence < OUString > SAL_CALL IndexEntrySupplier_Common::getAlgorithmList( const lang::Locale& ) throw (RuntimeException) +Sequence < OUString > SAL_CALL IndexEntrySupplier_Common::getAlgorithmList( const lang::Locale& ) throw (RuntimeException, std::exception) { throw RuntimeException(); } OUString SAL_CALL IndexEntrySupplier_Common::getPhoneticCandidate( const OUString&, - const lang::Locale& ) throw (RuntimeException) + const lang::Locale& ) throw (RuntimeException, std::exception) { return OUString(); } -sal_Bool SAL_CALL IndexEntrySupplier_Common::usePhoneticEntry( const lang::Locale& ) throw (RuntimeException) +sal_Bool SAL_CALL IndexEntrySupplier_Common::usePhoneticEntry( const lang::Locale& ) throw (RuntimeException, std::exception) { throw RuntimeException(); } sal_Bool SAL_CALL IndexEntrySupplier_Common::loadAlgorithm( const lang::Locale& rLocale, - const OUString& rAlgorithm, sal_Int32 collatorOptions ) throw (RuntimeException) + const OUString& rAlgorithm, sal_Int32 collatorOptions ) throw (RuntimeException, std::exception) { usePhonetic = LocaleDataImpl().isPhonetic(rLocale, rAlgorithm); collator->loadCollatorAlgorithm(rAlgorithm, rLocale, collatorOptions); @@ -72,7 +72,7 @@ sal_Bool SAL_CALL IndexEntrySupplier_Common::loadAlgorithm( const lang::Locale& } OUString SAL_CALL IndexEntrySupplier_Common::getIndexKey( const OUString& rIndexEntry, - const OUString&, const lang::Locale& ) throw (RuntimeException) + const OUString&, const lang::Locale& ) throw (RuntimeException, std::exception) { sal_Int32 nPos=0; sal_uInt32 indexChar=rIndexEntry.iterateCodePoints(&nPos, 0); @@ -82,7 +82,7 @@ OUString SAL_CALL IndexEntrySupplier_Common::getIndexKey( const OUString& rIndex sal_Int16 SAL_CALL IndexEntrySupplier_Common::compareIndexEntry( const OUString& rIndexEntry1, const OUString&, const lang::Locale&, const OUString& rIndexEntry2, const OUString&, const lang::Locale& ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return sal::static_int_cast< sal_Int16 >( collator->compareString(rIndexEntry1, rIndexEntry2)); @@ -90,13 +90,13 @@ sal_Int16 SAL_CALL IndexEntrySupplier_Common::compareIndexEntry( } OUString SAL_CALL IndexEntrySupplier_Common::getIndexCharacter( const OUString& rIndexEntry, - const lang::Locale& rLocale, const OUString& ) throw (RuntimeException) + const lang::Locale& rLocale, const OUString& ) throw (RuntimeException, std::exception) { return getIndexKey(rIndexEntry, rIndexEntry, rLocale); } OUString SAL_CALL IndexEntrySupplier_Common::getIndexFollowPageWord( sal_Bool, - const lang::Locale& ) throw (RuntimeException) + const lang::Locale& ) throw (RuntimeException, std::exception) { throw RuntimeException(); } @@ -118,19 +118,19 @@ IndexEntrySupplier_Common::getEntry( const OUString& IndexEntry, } OUString SAL_CALL -IndexEntrySupplier_Common::getImplementationName() throw( RuntimeException ) +IndexEntrySupplier_Common::getImplementationName() throw( RuntimeException, std::exception ) { return OUString::createFromAscii( implementationName ); } sal_Bool SAL_CALL -IndexEntrySupplier_Common::supportsService(const OUString& rServiceName) throw( RuntimeException ) +IndexEntrySupplier_Common::supportsService(const OUString& rServiceName) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -IndexEntrySupplier_Common::getSupportedServiceNames() throw( RuntimeException ) +IndexEntrySupplier_Common::getSupportedServiceNames() throw( RuntimeException, std::exception ) { Sequence< OUString > aRet(1); aRet[0] = OUString::createFromAscii( implementationName ); diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx index 8edd4b29f557..0986857e9d84 100644 --- a/i18npool/source/indexentry/indexentrysupplier_default.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx @@ -42,14 +42,14 @@ IndexEntrySupplier_Unicode::~IndexEntrySupplier_Unicode() } sal_Bool SAL_CALL IndexEntrySupplier_Unicode::loadAlgorithm( const lang::Locale& rLocale, - const OUString& rAlgorithm, sal_Int32 collatorOptions ) throw (RuntimeException) + const OUString& rAlgorithm, sal_Int32 collatorOptions ) throw (RuntimeException, std::exception) { index->init(rLocale, rAlgorithm); return IndexEntrySupplier_Common::loadAlgorithm(rLocale, rAlgorithm, collatorOptions); } OUString SAL_CALL IndexEntrySupplier_Unicode::getIndexKey( const OUString& rIndexEntry, - const OUString& rPhoneticEntry, const lang::Locale& rLocale ) throw (RuntimeException) + const OUString& rPhoneticEntry, const lang::Locale& rLocale ) throw (RuntimeException, std::exception) { return index->getIndexDescription(getEntry(rIndexEntry, rPhoneticEntry, rLocale)); } @@ -57,7 +57,7 @@ OUString SAL_CALL IndexEntrySupplier_Unicode::getIndexKey( const OUString& rInde sal_Int16 SAL_CALL IndexEntrySupplier_Unicode::compareIndexEntry( const OUString& rIndexEntry1, const OUString& rPhoneticEntry1, const lang::Locale& rLocale1, const OUString& rIndexEntry2, const OUString& rPhoneticEntry2, const lang::Locale& rLocale2 ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { sal_Int16 result = index->getIndexWeight(getEntry(rIndexEntry1, rPhoneticEntry1, rLocale1)) - @@ -70,7 +70,7 @@ sal_Int16 SAL_CALL IndexEntrySupplier_Unicode::compareIndexEntry( } OUString SAL_CALL IndexEntrySupplier_Unicode::getIndexCharacter( const OUString& rIndexEntry, - const lang::Locale& rLocale, const OUString& rAlgorithm ) throw (RuntimeException) { + const lang::Locale& rLocale, const OUString& rAlgorithm ) throw (RuntimeException, std::exception) { if (loadAlgorithm( rLocale, rAlgorithm, CollatorOptions::CollatorOptions_IGNORE_CASE_ACCENT)) return index->getIndexDescription(rIndexEntry); diff --git a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx index 6a2f6622fef2..39ce0ee685a5 100644 --- a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx @@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star { namespace i18n { OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUString& rIndexEntry, const lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ ) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { sal_Unicode ch=rIndexEntry.toChar(); sal_uInt16 first = idx[ ch >> 8 ]; @@ -44,7 +44,7 @@ OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUStr OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexKey( const OUString& IndexEntry, const OUString& PhoneticEntry, const lang::Locale& rLocale ) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return getIndexCharacter( PhoneticEntry.isEmpty() ? IndexEntry : PhoneticEntry , rLocale, OUString()); } @@ -52,7 +52,7 @@ OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexKey( const OUString& I sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry( const OUString& IndexEntry1, const OUString& PhoneticEntry1, const lang::Locale& rLocale1, const OUString& IndexEntry2, const OUString& PhoneticEntry2, const lang::Locale& rLocale2 ) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { sal_Int16 result = sal::static_int_cast<sal_Int16>( collator->compareString( IndexEntrySupplier_ja_phonetic::getIndexKey(IndexEntry1, PhoneticEntry1, rLocale1), @@ -68,13 +68,13 @@ sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry( static const sal_Char first[] = "ja_phonetic (alphanumeric first)"; sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, - sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException) + sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { return collator->loadCollatorAlgorithm(OUString::createFromAscii(first), rLocale, collatorOptions) == 0; } sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, - sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException) + sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { return collator->loadCollatorAlgorithm(OUString::createFromAscii(first), rLocale, collatorOptions) == 0; } @@ -82,13 +82,13 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant static const sal_Char last[] = "ja_phonetic (alphanumeric last)"; sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, - sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException) + sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { return collator->loadCollatorAlgorithm(OUString::createFromAscii(last), rLocale, collatorOptions) == 0; } sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant::loadAlgorithm( const com::sun::star::lang::Locale& rLocale, const OUString& /*SortAlgorithm*/, - sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException) + sal_Int32 collatorOptions ) throw (com::sun::star::uno::RuntimeException, std::exception) { return collator->loadCollatorAlgorithm(OUString::createFromAscii(last), rLocale, collatorOptions) == 0; } |