diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-26 12:40:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-26 12:40:43 +0200 |
commit | 28cb2c1764f2365d69ce09cb69f0f5a676458a33 (patch) | |
tree | 614b44a9dc1b4928af5db1880e9869cd3e997eb1 /i18npool/inc | |
parent | 6a1bebcc890c04acdc79236ff54cdd49b27be71a (diff) |
loplugin:refcounting: also cover temporaries being directly stack managed
Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/localedata.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx index 0a28ee0301f6..c36e71175864 100644 --- a/i18npool/inc/localedata.hxx +++ b/i18npool/inc/localedata.hxx @@ -39,6 +39,7 @@ #include <com/sun/star/i18n/UnicodeScript.hpp> #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/XInterface.hpp> +#include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <vector> #include <memory> @@ -68,6 +69,8 @@ public: LocaleDataImpl(); virtual ~LocaleDataImpl(); + static rtl::Reference<LocaleDataImpl> get() { return new LocaleDataImpl; } + static css::uno::Sequence< css::i18n::CalendarItem > downcastCalendarItems( const css::uno::Sequence< css::i18n::CalendarItem2 > & rCi ); static css::i18n::Calendar downcastCalendar( const css::i18n::Calendar2 & rC ); |