Kaydet (Commit) 95d7dc53 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SwCaptionDialog

Change-Id: Ibf49f18ed43bb24a3ef79a0c7862b0dbd2698f3d
Reviewed-on: https://gerrit.libreoffice.org/58237
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst aa818238
......@@ -418,7 +418,7 @@ SwCaptionDialog::~SwCaptionDialog()
void SwCaptionDialog::dispose()
{
delete pMgr;
pMgr.reset();
m_pTextEdit.clear();
m_pCategoryBox.clear();
m_pFormatText.clear();
......
......@@ -58,7 +58,7 @@ class SwCaptionDialog : public SvxStandardDialog
VclPtr<SwCaptionPreview> m_pPreview;
SwView &rView; // search per active, avoid View
SwFieldMgr *pMgr; // pointer to save the include
std::unique_ptr<SwFieldMgr> pMgr; // pointer to save the include
OUString sCharacterStyle;
bool bCopyAttributes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment