Kaydet (Commit) ded5c13b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735404 Logically dead code

Change-Id: I648a573bc886c790886caa45324503cd15c350cd
üst eb87aecd
......@@ -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;
}
......
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