summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 11:25:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 10:00:22 +0100
commitd4e1802c620e3cddb2e7a9f6a573a5a4770bc7a4 (patch)
treeccb178f4c83baf8d21cdf9c310e6f3bbce46c2bf /svx/source
parentf4b9c35c018ccacd7f8cf71c534863239b0da02c (diff)
loplugin:useuniqueptr in TextChainFlow
Change-Id: Iad96df43c9c7ae6d5fd4f3aa9c2c5c721711da30 Reviewed-on: https://gerrit.libreoffice.org/49331 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/textchainflow.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/textchainflow.cxx b/svx/source/svdraw/textchainflow.cxx
index b87d2a7f02ed..5cce8877e098 100644
--- a/svx/source/svdraw/textchainflow.cxx
+++ b/svx/source/svdraw/textchainflow.cxx
@@ -46,8 +46,8 @@ TextChainFlow::TextChainFlow(SdrTextObj *pChainTarget)
TextChainFlow::~TextChainFlow()
{
- delete mpOverflChText;
- delete mpUnderflChText;
+ mpOverflChText.reset();
+ mpUnderflChText.reset();
}
void TextChainFlow::impSetFlowOutlinerParams(SdrOutliner *, SdrOutliner *)
@@ -91,14 +91,14 @@ void TextChainFlow::impCheckForFlowEvents(SdrOutliner *pFlowOutl, SdrOutliner *p
// If we had an underflow before we have to deep merge paras anyway
bool bMustMergeParaOF = bMustMergeParaAmongLinks || mbOFisUFinduced;
- mpOverflChText = bOverflow ?
+ mpOverflChText.reset( bOverflow ?
new OFlowChainedText(pFlowOutl, bMustMergeParaOF) :
- nullptr;
+ nullptr );
// Set current underflowing text (if any)
- mpUnderflChText = bUnderflow ?
+ mpUnderflChText.reset( bUnderflow ?
new UFlowChainedText(pFlowOutl, bMustMergeParaAmongLinks) :
- nullptr;
+ nullptr );
// Reset update mode // Reset it here because we use WriteRTF (needing updatemode = true) in the two constructors above
if (!bOldUpdateMode) // Reset only if the old value was false