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/collator/chaptercollator.cxx | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'i18npool/source/collator/chaptercollator.cxx')
-rw-r--r-- | i18npool/source/collator/chaptercollator.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx index dd2f9ca49d7e..2eb4e146c395 100644 --- a/i18npool/source/collator/chaptercollator.cxx +++ b/i18npool/source/collator/chaptercollator.cxx @@ -41,7 +41,7 @@ ChapterCollator::~ChapterCollator() } sal_Int32 SAL_CALL -ChapterCollator::compareString( const OUString& s1, const OUString& s2) throw(RuntimeException) +ChapterCollator::compareString( const OUString& s1, const OUString& s2) throw(RuntimeException, std::exception) { return compareSubstring(s1, 0, s1.getLength(), s2, 0, s2.getLength()); } @@ -50,7 +50,7 @@ ChapterCollator::compareString( const OUString& s1, const OUString& s2) throw(Ru sal_Int32 SAL_CALL ChapterCollator::compareSubstring( const OUString& str1, sal_Int32 off1, sal_Int32 len1, - const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(RuntimeException) + const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(RuntimeException, std::exception) { if( len1 <= 1 || len2 <= 1 || ! cclass.is() ) return CollatorImpl::compareSubstring( str1, off1, len1, str2, off2, len2 ); @@ -77,19 +77,19 @@ ChapterCollator::compareSubstring( const OUString& str1, sal_Int32 off1, sal_Int const sal_Char *cChapCollator = "com.sun.star.i18n.ChapterCollator"; OUString SAL_CALL -ChapterCollator::getImplementationName() throw( RuntimeException ) +ChapterCollator::getImplementationName() throw( RuntimeException, std::exception ) { return OUString::createFromAscii(cChapCollator); } sal_Bool SAL_CALL -ChapterCollator::supportsService(const OUString& rServiceName) throw( RuntimeException ) +ChapterCollator::supportsService(const OUString& rServiceName) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -ChapterCollator::getSupportedServiceNames() throw( RuntimeException ) +ChapterCollator::getSupportedServiceNames() throw( RuntimeException, std::exception ) { Sequence< OUString > aRet(1); aRet[0] = OUString::createFromAscii(cChapCollator); |