From 39d19a88bd4f0bd22aa843b630ab50f9b2708d87 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 May 2018 10:33:18 +0200 Subject: loplugin:useuniqueptr in OTableConnection Change-Id: I4fe5c706d0aec4b2b81bdbe9e9a59e771af4a02e Reviewed-on: https://gerrit.libreoffice.org/54854 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/relationdesign/RTableConnection.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/relationdesign') diff --git a/dbaccess/source/ui/relationdesign/RTableConnection.cxx b/dbaccess/source/ui/relationdesign/RTableConnection.cxx index b76016d14c1a..56e7549c1998 100644 --- a/dbaccess/source/ui/relationdesign/RTableConnection.cxx +++ b/dbaccess/source/ui/relationdesign/RTableConnection.cxx @@ -60,7 +60,7 @@ void ORelationTableConnection::Draw(vcl::RenderContext& rRenderContext, const to long nTemp; const OConnectionLine* pTopLine = nullptr; - const std::vector& rConnLineList = GetConnLineList(); + const std::vector>& rConnLineList = GetConnLineList(); for (auto const& elem : rConnLineList) { @@ -71,7 +71,7 @@ void ORelationTableConnection::Draw(vcl::RenderContext& rRenderContext, const to if(nTemp < nTop) { nTop = nTemp; - pTopLine = elem; + pTopLine = elem.get(); } } } -- cgit