diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-31 15:49:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-31 19:53:14 +0200 |
commit | af83bf98b2ea907437edf964cf7af50a5bc66096 (patch) | |
tree | aeba0e108123d68fca00b90fa5eb439e577f9bd3 /sfx2/inc | |
parent | ec49596a3e66163ce811e8b64808df249a5cf637 (diff) |
fix leak in redaction dialog
Change-Id: I1e918259757021a7c702196be73468d91b244e61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116451
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/autoredactdialog.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/inc/autoredactdialog.hxx b/sfx2/inc/autoredactdialog.hxx index 657881979df2..fe43eef840f0 100644 --- a/sfx2/inc/autoredactdialog.hxx +++ b/sfx2/inc/autoredactdialog.hxx @@ -92,7 +92,7 @@ enum class StartFileDialogType class SfxAutoRedactDialog final : public SfxDialogController { SfxObjectShellLock m_xDocShell; - std::vector<std::pair<RedactionTarget*, OUString>> m_aTableTargets; + std::vector<std::pair<std::unique_ptr<RedactionTarget>, OUString>> m_aTableTargets; std::unique_ptr<sfx2::FileDialogHelper> m_pFileDlg; bool m_bIsValidState; bool m_bTargetsCopied; @@ -116,7 +116,7 @@ class SfxAutoRedactDialog final : public SfxDialogController void StartFileDialog(StartFileDialogType nType, const OUString& rTitle); /// Carry out proper addition both to the targets box, and to the tabletargets vector. - void addTarget(RedactionTarget* pTarget); + void addTarget(std::unique_ptr<RedactionTarget> pTarget); /// Clear all targets both visually and from the targets vector void clearTargets(); |