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

loplugin:useuniqueptr in DlgQryJoin

Change-Id: Ia9a5534b6d69dde163fae54fbd2764dc9b279a5d
Reviewed-on: https://gerrit.libreoffice.org/54855Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 39d19a88
...@@ -67,7 +67,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent, ...@@ -67,7 +67,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
m_pConnData.reset(_pData->NewInstance()); m_pConnData.reset(_pData->NewInstance());
m_pConnData->CopyFrom(*_pData); 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()); m_pCBNatural->Check(static_cast<OQueryTableConnectionData*>(m_pConnData.get())->isNatural());
...@@ -143,7 +143,7 @@ DlgQryJoin::~DlgQryJoin() ...@@ -143,7 +143,7 @@ DlgQryJoin::~DlgQryJoin()
void DlgQryJoin::dispose() void DlgQryJoin::dispose()
{ {
delete m_pTableControl; m_pTableControl.reset();
m_pML_HelpText.clear(); m_pML_HelpText.clear();
m_pPB_OK.clear(); m_pPB_OK.clear();
m_pLB_JoinType.clear(); m_pLB_JoinType.clear();
......
...@@ -43,7 +43,7 @@ namespace dbaui ...@@ -43,7 +43,7 @@ namespace dbaui
VclPtr<ListBox> m_pLB_JoinType; VclPtr<ListBox> m_pLB_JoinType;
VclPtr<CheckBox> m_pCBNatural; VclPtr<CheckBox> m_pCBNatural;
OTableListBoxControl* m_pTableControl; std::unique_ptr<OTableListBoxControl> m_pTableControl;
EJoinType eJoinType; EJoinType eJoinType;
TTableConnectionData::value_type m_pConnData; // contains left and right table TTableConnectionData::value_type m_pConnData; // contains left and right table
......
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