summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 11:42:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-18 13:19:35 +0200
commit326534372ee5436d2f6e972de46fc01bb635e9d9 (patch)
tree7bccb0f28e56cd32104b7b532fbad42f825ae7ed /sw/source/uibase/dbui
parenta6535669f9532b61ee5906d4b1339bc9af4b0882 (diff)
no need to allocate these on the heap
Change-Id: Ia5eec87a4b36ac2dd15c3369bd7c630277a177c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138473 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dbui')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 6e8881d2d186..cd435fb841cd 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -588,7 +588,7 @@ void SwDBManager::ImportFromConnection( SwWrtShell* pSh )
if( pSh->HasSelection() )
pSh->DelRight();
- std::unique_ptr<SwWait> pWait;
+ std::optional<SwWait> oWait;
{
sal_uLong i = 0;
@@ -596,7 +596,7 @@ void SwDBManager::ImportFromConnection( SwWrtShell* pSh )
ImportDBEntry(pSh);
if( 10 == ++i )
- pWait.reset(new SwWait( *pSh->GetView().GetDocShell(), true));
+ oWait.emplace( *pSh->GetView().GetDocShell(), true);
} while(ToNextMergeRecord());
}