summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-08 16:01:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-08 16:10:43 +0100
commitded5c13bb5e4c345b04893ef0632336fef77a9fd (patch)
treed36d62fe918281737aaaf8518087d11c71abacad /dbaccess
parenteb87aecdad36638d371c8a7a297a22c90a4ad515 (diff)
coverity#735404 Logically dead code
Change-Id: I648a573bc886c790886caa45324503cd15c350cd
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/QTableWindow.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/dbaccess/source/ui/querydesign/QTableWindow.cxx b/dbaccess/source/ui/querydesign/QTableWindow.cxx
index 0c0037a79b2d..be5a91db7256 100644
--- a/dbaccess/source/ui/querydesign/QTableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/QTableWindow.cxx
@@ -73,7 +73,7 @@ OQueryTableWindow::~OQueryTableWindow()
bool OQueryTableWindow::Init()
{
bool bSuccess = OTableWindow::Init();
- if(!bSuccess)
+ if (!bSuccess)
return bSuccess;
OQueryTableView* pContainer = static_cast<OQueryTableView*>(getTableView());
@@ -105,24 +105,6 @@ bool OQueryTableWindow::Init()
m_aTitle.SetText( pWinData->GetWinName() );
m_aTitle.Show();
- if (!bSuccess)
- { // it should just open a dummy window...
- OSL_ENSURE(!GetAliasName().isEmpty(), "OQueryTableWindow::Init : kein Alias- UND kein Tabellenname geht nicht !");
- // .. but that needs at least an Alias
-
- // create ::com::sun::star::form::ListBox
- if (!m_pListBox)
- m_pListBox = CreateListBox();
-
- // set title
- m_aTitle.SetText(GetAliasName());
- m_aTitle.Show();
-
- clearListBox();
- // don't need to refill them as I don't have a table
- m_pListBox->Show();
- }
-
getTableView()->getDesignView()->getController().InvalidateFeature(ID_BROWSER_QUERY_EXECUTE);
return bSuccess;
}