From 8fff6bf6bdab6b7addcbbf472a226706edda1edb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Oct 2012 17:18:13 +0200 Subject: fdo#46808, Adapt i18n::LocaleCalendar UNO service to new style Did not need to create a new interface, because XCalendar3 already covers the whole service interface. Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882 --- vcl/source/control/field2.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vcl/source') diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 379aa5cb25ea..be162a457548 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -26,6 +26,9 @@ * ************************************************************************/ +#include "sal/config.h" + +#include #include #include #include @@ -1577,7 +1580,7 @@ CalendarWrapper& DateFormatter::GetCalendarWrapper() const { if ( !mpCalendarWrapper ) { - ((DateFormatter*)this)->mpCalendarWrapper = new CalendarWrapper( vcl::unohelper::GetMultiServiceFactory() ); + ((DateFormatter*)this)->mpCalendarWrapper = new CalendarWrapper( comphelper::getComponentContext( vcl::unohelper::GetMultiServiceFactory() ) ); mpCalendarWrapper->loadDefaultCalendar( GetLocale() ); } -- cgit