sd/qa/unit/uimpress.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit cb9ce13d82839a7ce0db3bd113e70bbcc125076a Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Jul 30 14:59:49 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Jul 31 12:11:57 2018 +0200 loplugin:useuniqueptr in sd::Test Change-Id: I77b938a6269612d6282fcef4f17a5a8486f93fc2 Reviewed-on: https://gerrit.libreoffice.org/58355 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sd/qa/unit/uimpress.cxx b/sd/qa/unit/uimpress.cxx index eeedd3e7ce60..ec39b2abe626 100644 --- a/sd/qa/unit/uimpress.cxx +++ b/sd/qa/unit/uimpress.cxx @@ -48,7 +48,7 @@ public: private: uno::Reference< uno::XComponentContext > m_xContext; - SdDrawDocument* m_pDoc; + std::unique_ptr<SdDrawDocument> m_pDoc; }; Test::Test() @@ -71,12 +71,12 @@ Test::Test() void Test::setUp() { - m_pDoc = new SdDrawDocument(DocumentType::Impress, nullptr); + m_pDoc.reset(new SdDrawDocument(DocumentType::Impress, nullptr)); } void Test::tearDown() { - delete m_pDoc; + m_pDoc.reset(); } Test::~Test() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits