summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-21 15:32:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-28 08:46:36 +0200
commitdc8e63784687292ffa178ff29f6fe2f9fd100eea (patch)
tree1430bd202bf6788939f23d1ed5dd94be7414d168 /dbaccess
parent39d19a88bd4f0bd22aa843b630ab50f9b2708d87 (diff)
loplugin:useuniqueptr in DlgQryJoin
Change-Id: Ia9a5534b6d69dde163fae54fbd2764dc9b279a5d Reviewed-on: https://gerrit.libreoffice.org/54855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index 2bf06735b947..fc5108442506 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -67,7 +67,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
m_pConnData.reset(_pData->NewInstance());
m_pConnData->CopyFrom(*_pData);
- m_pTableControl = new OTableListBoxControl(this, _pTableMap, this);
+ m_pTableControl.reset(new OTableListBoxControl(this, _pTableMap, this));
m_pCBNatural->Check(static_cast<OQueryTableConnectionData*>(m_pConnData.get())->isNatural());
@@ -143,7 +143,7 @@ DlgQryJoin::~DlgQryJoin()
void DlgQryJoin::dispose()
{
- delete m_pTableControl;
+ m_pTableControl.reset();
m_pML_HelpText.clear();
m_pPB_OK.clear();
m_pLB_JoinType.clear();
diff --git a/dbaccess/source/ui/querydesign/querydlg.hxx b/dbaccess/source/ui/querydesign/querydlg.hxx
index 93a8d53e54f8..004afdc4fc32 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hxx
+++ b/dbaccess/source/ui/querydesign/querydlg.hxx
@@ -43,7 +43,7 @@ namespace dbaui
VclPtr<ListBox> m_pLB_JoinType;
VclPtr<CheckBox> m_pCBNatural;
- OTableListBoxControl* m_pTableControl;
+ std::unique_ptr<OTableListBoxControl> m_pTableControl;
EJoinType eJoinType;
TTableConnectionData::value_type m_pConnData; // contains left and right table