summaryrefslogtreecommitdiff
path: root/i18npool/source/calendar/calendar_gregorian.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/calendar/calendar_gregorian.cxx')
-rw-r--r--i18npool/source/calendar/calendar_gregorian.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index c7ff413d297a..e70666ea5483 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -168,14 +168,13 @@ Calendar_gregorian::init(const Era *_eraArray)
icu::Locale aIcuLocale( "", nullptr, nullptr, "calendar=gregorian");
UErrorCode status;
- body = icu::Calendar::createInstance( aIcuLocale, status = U_ZERO_ERROR);
+ body.reset( icu::Calendar::createInstance( aIcuLocale, status = U_ZERO_ERROR) );
if (!body || !U_SUCCESS(status)) throw ERROR;
eraArray=_eraArray;
}
Calendar_gregorian::~Calendar_gregorian()
{
- delete body;
}
Calendar_hanja::Calendar_hanja()