diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-21 10:33:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-28 08:46:25 +0200 |
commit | 39d19a88bd4f0bd22aa843b630ab50f9b2708d87 (patch) | |
tree | a3d64993cb85ca6b066c3a6840ebf16dee286b8f /dbaccess/source/ui/relationdesign | |
parent | 7fd67ca9361cc15732c505004ab4471bd2cf7f99 (diff) |
loplugin:useuniqueptr in OTableConnection
Change-Id: I4fe5c706d0aec4b2b81bdbe9e9a59e771af4a02e
Reviewed-on: https://gerrit.libreoffice.org/54854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/relationdesign')
-rw-r--r-- | dbaccess/source/ui/relationdesign/RTableConnection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<OConnectionLine*>& rConnLineList = GetConnLineList(); + const std::vector<std::unique_ptr<OConnectionLine>>& 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(); } } } |