summaryrefslogtreecommitdiff
path: root/i18npool/source/characterclassification/cclass_unicode.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-22 14:04:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-02 11:12:15 +0100
commit23e9b1294471459d386152b1197cfe58514af5da (patch)
tree0c8705260a4f33810e4c69f09a09dca7031e0ea7 /i18npool/source/characterclassification/cclass_unicode.cxx
parentcc45c96770def8fb3cc8c6d6c3d385c592806ae9 (diff)
loplugin:useuniqueptr in i18npool
Change-Id: Iff39b9298bfad474c5c011b6355b8ebf5be06318 Reviewed-on: https://gerrit.libreoffice.org/49091 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/characterclassification/cclass_unicode.cxx')
-rw-r--r--i18npool/source/characterclassification/cclass_unicode.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index 5b000060c49b..70727dea8cb1 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -39,7 +39,9 @@ namespace i18npool {
// class cclass_Unicode
// ----------------------------------------------------;
-cclass_Unicode::cclass_Unicode( const uno::Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ),
+cclass_Unicode::cclass_Unicode( const uno::Reference < XComponentContext >& rxContext ) :
+ trans( new Transliteration_casemapping() ),
+ m_xContext( rxContext ),
pTable( nullptr ),
pStart( nullptr ),
pCont( nullptr ),
@@ -50,12 +52,10 @@ cclass_Unicode::cclass_Unicode( const uno::Reference < XComponentContext >& rxCo
cDecimalSep( '.' ),
cDecimalSepAlt( 0 )
{
- trans = new Transliteration_casemapping();
}
cclass_Unicode::~cclass_Unicode() {
destroyParserTable();
- delete trans;
}