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

loplugin:useuniqueptr in TextApiObject

Change-Id: I418f18a1e090dab2923395963b2a003df58890ae
Reviewed-on: https://gerrit.libreoffice.org/54859Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c2697612
......@@ -47,7 +47,7 @@ public:
static TextApiObject* getImplementation( const css::uno::Reference< css::text::XText >& );
private:
TextAPIEditSource* mpSource;
std::unique_ptr<TextAPIEditSource> mpSource;
TextApiObject( TextAPIEditSource* pEditSource );
};
......
......@@ -144,8 +144,7 @@ void TextApiObject::dispose()
if( mpSource )
{
mpSource->Dispose();
delete mpSource;
mpSource = nullptr;
mpSource.reset();
}
}
......
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