Kaydet (Commit) 12726ee8 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in OFlowChainedText

Change-Id: I63f6242a41eddd36b9ebbef470faf9e5111b19f1
Reviewed-on: https://gerrit.libreoffice.org/49149Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst cf4ee7b8
......@@ -158,16 +158,14 @@ OutlinerParaObject *OverflowingText::DeeplyMergeParaObject(Outliner *pOutl, Outl
OFlowChainedText::OFlowChainedText(Outliner const *pOutl, bool bIsDeepMerge)
{
mpOverflowingTxt = pOutl->GetOverflowingText();
mpNonOverflowingTxt = pOutl->GetNonOverflowingText();
mpOverflowingTxt.reset( pOutl->GetOverflowingText() );
mpNonOverflowingTxt.reset( pOutl->GetNonOverflowingText() );
mbIsDeepMerge = bIsDeepMerge;
}
OFlowChainedText::~OFlowChainedText()
{
delete mpNonOverflowingTxt;
delete mpOverflowingTxt;
}
......
......@@ -25,6 +25,7 @@
#include <editeng/editdata.hxx>
#include <com/sun/star/uno/Reference.h>
#include <memory>
namespace com { namespace sun { namespace star {
namespace datatransfer {
......@@ -115,8 +116,8 @@ public:
bool IsLastParaInterrupted() const;
private:
NonOverflowingText *mpNonOverflowingTxt;
OverflowingText *mpOverflowingTxt;
std::unique_ptr<NonOverflowingText> mpNonOverflowingTxt;
std::unique_ptr<OverflowingText> mpOverflowingTxt;
bool mbIsDeepMerge;
};
......
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