summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-09 14:44:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-10 08:16:31 +0200
commitc302027510adb13a2d34d863e417460375588c4b (patch)
tree753aaebad792666c75602a901e6ae336975e410f /sc/source/ui/app
parentb2ea5031386d773f797b3f8cf8035ba5680db813 (diff)
pass SfxItemSet by unique_ptr to ScEditEngineDefaulter
Change-Id: I2bcfb87f687355a66a8a855b2858220cf1fefd39 Reviewed-on: https://gerrit.libreoffice.org/72043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/inputwin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index a54332c9a4af..031546dc0f78 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1233,14 +1233,14 @@ void ScTextWnd::InitEditEngine()
UpdateAutoCorrFlag();
{
- SfxItemSet* pSet = new SfxItemSet( mpEditEngine->GetEmptyItemSet() );
+ auto pSet = std::make_unique<SfxItemSet>( mpEditEngine->GetEmptyItemSet() );
EditEngine::SetFontInfoInItemSet( *pSet, aTextFont );
lcl_ExtendEditFontAttribs( *pSet );
// turn off script spacing to match DrawText output
pSet->Put( SvxScriptSpaceItem( false, EE_PARA_ASIANCJKSPACING ) );
if ( bIsRTL )
lcl_ModifyRTLDefaults( *pSet );
- mpEditEngine->SetDefaults( pSet );
+ mpEditEngine->SetDefaults( std::move(pSet) );
}
// If the Cell contains URLFields, they need to be taken over into the entry row,
@@ -1756,12 +1756,12 @@ void ScTextWnd::MakeDialogEditView()
mpEditEngine->SetWordDelimiters( mpEditEngine->GetWordDelimiters() + "=" );
mpEditEngine->SetPaperSize( Size( bIsRTL ? USHRT_MAX : THESIZE, 300 ) );
- SfxItemSet* pSet = new SfxItemSet( mpEditEngine->GetEmptyItemSet() );
+ auto pSet = std::make_unique<SfxItemSet>( mpEditEngine->GetEmptyItemSet() );
EditEngine::SetFontInfoInItemSet( *pSet, aTextFont );
lcl_ExtendEditFontAttribs( *pSet );
if ( bIsRTL )
lcl_ModifyRTLDefaults( *pSet );
- mpEditEngine->SetDefaults( pSet );
+ mpEditEngine->SetDefaults( std::move(pSet) );
mpEditEngine->SetUpdateMode( true );
mpEditView = std::make_unique<EditView>(mpEditEngine.get(), this);