diff options
Diffstat (limited to 'sc/source/ui/unoobj/editsrc.cxx')
-rw-r--r-- | sc/source/ui/unoobj/editsrc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx index 6b3fa37447e6..231f080fa9da 100644 --- a/sc/source/ui/unoobj/editsrc.cxx +++ b/sc/source/ui/unoobj/editsrc.cxx @@ -141,9 +141,9 @@ SvxTextForwarder* ScAnnotationEditSource::GetTextForwarder() } else { - SfxItemPool* pEnginePool = EditEngine::CreatePool(); + rtl::Reference<SfxItemPool> pEnginePool = EditEngine::CreatePool(); pEnginePool->FreezeIdRanges(); - pEditEngine.reset( new ScEditEngineDefaulter( pEnginePool, true ) ); + pEditEngine.reset( new ScEditEngineDefaulter( pEnginePool.get(), true ) ); } pForwarder.reset( new SvxEditEngineForwarder(*pEditEngine) ); } |