diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-04 15:05:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-06 09:28:10 +0200 |
commit | 12a3f5cefeaeb842507dd8038597fb77ca929dd1 (patch) | |
tree | c1d496a275fceb1b2fda406f13acca71d9e6947a /svx/source | |
parent | ab9b38a4064141705aa3a3de9a5d73b465ad3af3 (diff) |
rework as a shared_ptr
mostly to try and track down a crash on exit of sw uwriter under
windows
Change-Id: Id67e93863056da319dd8225038d60a7f5783b103
Reviewed-on: https://gerrit.libreoffice.org/39604
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 8981e4c415ff..713d0222d3cf 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -290,7 +290,7 @@ SdrModel::~SdrModel() SfxItemPool::Free(pOutlPool); } - mpForbiddenCharactersTable.clear(); + mpForbiddenCharactersTable.reset(); delete mpImpl->mpUndoFactory; } @@ -1842,7 +1842,7 @@ void SdrModel::MigrateItemSet( const SfxItemSet* pSourceSet, SfxItemSet* pDestSe } -void SdrModel::SetForbiddenCharsTable( const rtl::Reference<SvxForbiddenCharactersTable>& xForbiddenChars ) +void SdrModel::SetForbiddenCharsTable(const std::shared_ptr<SvxForbiddenCharactersTable>& xForbiddenChars) { mpForbiddenCharactersTable = xForbiddenChars; |