summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-14 16:20:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-09-15 14:21:41 +0000
commit64a89bee8c3bd74d789f50256d2528d9b5f4f736 (patch)
tree69e6b5634c8db9ab3a48f06152ec1c9521d3fe98
parent0442fd0936be714284feb8d36d3389a7ffcb87c8 (diff)
Resolves: fdo#81039 crash on adding new macro library
regression from commit bf28399df0b73364b12309032e4a8b571389c2cf Date: Fri Feb 7 15:54:45 2014 +0100 auto_ptr -> heap_ptr Change-Id: Ib54c708cbdcb97a7489df4a1b3a7e9367f81ff6b (cherry picked from commit a88b2d841856026ea1a0539d670e07fafd296c6e) Reviewed-on: https://gerrit.libreoffice.org/11447 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--basctl/source/basicide/moduldl2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 7c6cca87672c..598a170d629c 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -1517,7 +1517,7 @@ void createLibImpl( Window* pWin, const ScriptDocument& rDocument,
if( pNewLibEntry )
{
- o3tl::heap_ptr<Entry>(new Entry(OBJ_TYPE_MODULE));
+ e.reset(new Entry(OBJ_TYPE_MODULE));
SvTreeListEntry* pEntry_ = pBasicBox->AddEntry(
aModName,
Image( IDEResId( RID_IMG_MODULE ) ),