summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r--dbaccess/source/ui/querydesign/QueryTableView.cxx1
-rw-r--r--dbaccess/source/ui/querydesign/TableConnectionData.cxx1
-rw-r--r--dbaccess/source/ui/querydesign/querycontainerwindow.cxx3
3 files changed, 2 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx
index f2d0a17581cf..b90254ac7869 100644
--- a/dbaccess/source/ui/querydesign/QueryTableView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx
@@ -133,7 +133,6 @@ namespace
OQueryTableConnectionData* pNewConnData = new OQueryTableConnectionData( _rSource.GetData(), _rDest.GetData() );
TTableConnectionData::value_type aNewConnData(pNewConnData);
- Reference<XIndexAccess> xReferencedKeys( _rDest.GetData()->getKeys());
OUString sRelatedColumn;
// iterate through all foreignkey columns to create the connections
diff --git a/dbaccess/source/ui/querydesign/TableConnectionData.cxx b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
index 760e1e0aec3a..f8498f058e52 100644
--- a/dbaccess/source/ui/querydesign/TableConnectionData.cxx
+++ b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
@@ -133,7 +133,6 @@ OConnectionLineDataVec::size_type OTableConnectionData::normalizeLines()
{
if(m_vConnLineData[i]->GetSourceFieldName().isEmpty() && m_vConnLineData[i]->GetDestFieldName().isEmpty())
{
- OConnectionLineDataRef pData = m_vConnLineData[i];
m_vConnLineData.erase(m_vConnLineData.begin()+i);
--nCount;
if (i < nRet)
diff --git a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
index 572d8354683a..7361421378a4 100644
--- a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
+++ b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
@@ -62,8 +62,9 @@ namespace dbaui
void OQueryContainerWindow::dispose()
{
{
- std::unique_ptr<OQueryViewSwitch> aTemp(m_pViewSwitch);
+ OQueryViewSwitch* pTemp = m_pViewSwitch;
m_pViewSwitch = nullptr;
+ delete pTemp;
}
if ( m_pBeamer )
::dbaui::notifySystemWindow(this,m_pBeamer,::comphelper::mem_fun(&TaskPaneList::RemoveWindow));