diff options
Diffstat (limited to 'i18npool/source/calendar/calendarImpl.cxx')
-rw-r--r-- | i18npool/source/calendar/calendarImpl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx index 2cb659560489..8a288bcb6c31 100644 --- a/i18npool/source/calendar/calendarImpl.cxx +++ b/i18npool/source/calendar/calendarImpl.cxx @@ -20,6 +20,7 @@ #include <calendarImpl.hxx> #include <calendar_gregorian.hxx> #include <localedata.hxx> +#include <comphelper/processfactory.hxx> #include <comphelper/sequence.hxx> #include <cppuhelper/supportsservice.hxx> @@ -32,8 +33,14 @@ namespace i18npool { #define ERROR RuntimeException() +CalendarImpl::CalendarImpl() : m_xContext(comphelper::getProcessComponentContext()) +{ +} + CalendarImpl::CalendarImpl(const Reference< XComponentContext > &rxContext) : m_xContext(rxContext) { + if (!m_xContext.is()) + throw ERROR; } CalendarImpl::~CalendarImpl() |