coverity#735404 Logically dead code

Change-Id: I648a573bc886c790886caa45324503cd15c350cd
This commit is contained in:
Caolán McNamara
2014-05-08 16:01:50 +01:00
parent eb87aecdad
commit ded5c13bb5

View File

@@ -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;
}