summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-14 11:02:54 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-14 11:14:03 +0000
commit996edbce872ae6c239aa3c82582c0c6c37baa715 (patch)
tree643381a5c897e759bb9689638a4aeedc4926a30e /i18npool
parent44ffbca37c93074b8574b51bffdc44b8461510df (diff)
coverity#1398584 Uncaught exception
Change-Id: Ic5a269bee9cf1e481cd107d36dc190adc9715af5
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/inc/localedata.hxx2
-rw-r--r--i18npool/source/localedata/localedata.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx
index 636b6275535a..58e1f798a1f6 100644
--- a/i18npool/inc/localedata.hxx
+++ b/i18npool/inc/localedata.hxx
@@ -142,7 +142,7 @@ private:
const sal_Int16 nCalendar,
const css::lang::Locale & rLocale,
const css::uno::Sequence< css::i18n::Calendar2 > & calendarsSeq )
- throw( css::uno::RuntimeException );
+ throw( css::uno::RuntimeException, std::exception );
};
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index f57b953f74b0..1051e1175e87 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -657,12 +657,11 @@ Sequence< CalendarItem2 > &LocaleDataImpl::getCalendarItemByName(const OUString&
}
}
-
Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems(
sal_Unicode const * const * const allCalendars, sal_Int16 & rnOffset,
const sal_Int16 nWhichItem, const sal_Int16 nCalendar,
const Locale & rLocale, const Sequence< Calendar2 > & calendarsSeq )
- throw(RuntimeException)
+ throw(RuntimeException, std::exception)
{
Sequence< CalendarItem2 > aItems;
if ( OUString( allCalendars[rnOffset] ) == "ref" )
@@ -706,7 +705,6 @@ Sequence< CalendarItem2 > LocaleDataImpl::getCalendarItems(
return aItems;
}
-
Sequence< Calendar2 > SAL_CALL
LocaleDataImpl::getAllCalendars2( const Locale& rLocale ) throw(RuntimeException, std::exception)
{