summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen6.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/documen6.cxx')
-rw-r--r--sc/source/core/data/documen6.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/documen6.cxx b/sc/source/core/data/documen6.cxx
index d4b8a41db979..fe414517b429 100644
--- a/sc/source/core/data/documen6.cxx
+++ b/sc/source/core/data/documen6.cxx
@@ -42,7 +42,7 @@ using namespace com::sun::star;
const uno::Reference< i18n::XBreakIterator >& ScDocument::GetBreakIterator()
{
if ( !pScriptTypeData )
- pScriptTypeData = new ScScriptTypeData;
+ pScriptTypeData.reset( new ScScriptTypeData );
if ( !pScriptTypeData->xBreakIter.is() )
{
pScriptTypeData->xBreakIter = i18n::BreakIterator::create( comphelper::getProcessComponentContext() );