loplugin:virtualdead in dbaccess
Change-Id: I030283816185f42f9012c8dfb2d745164abd7234 Reviewed-on: https://gerrit.libreoffice.org/79644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
616d47dbbe
commit
c1e31ee043
@ -13,9 +13,6 @@ chart2/source/controller/dialogs/ChartTypeDialogController.hxx:99
|
||||
chart2/source/controller/sidebar/ChartSidebarSelectionListener.hxx:30
|
||||
void chart::sidebar::ChartSidebarSelectionListenerParent::SelectionInvalid()
|
||||
empty
|
||||
dbaccess/source/ui/inc/IUpdateHelper.hxx:38
|
||||
void dbaui::IUpdateHelper::moveToInsertRow()
|
||||
empty
|
||||
desktop/source/deployment/registry/inc/dp_backenddb.hxx:119
|
||||
class rtl::OUString dp_registry::backend::BackendDb::getDbNSName()
|
||||
"http://openoffi
|
||||
|
@ -35,7 +35,6 @@ namespace dbaui
|
||||
virtual void updateDate(sal_Int32 _nPos,const css::util::Date& _nValue) = 0;
|
||||
virtual void updateTime(sal_Int32 _nPos,const css::util::Time& _nValue) = 0;
|
||||
virtual void updateTimestamp(sal_Int32 _nPos,const css::util::DateTime& _nValue) = 0;
|
||||
virtual void moveToInsertRow() = 0;
|
||||
virtual void insertRow() = 0;
|
||||
|
||||
protected:
|
||||
|
@ -156,19 +156,7 @@ void OHTMLReader::NextToken( HtmlTokenId nToken )
|
||||
}
|
||||
break;
|
||||
case HtmlTokenId::TABLEROW_ON:
|
||||
if ( m_pUpdateHelper.get() )
|
||||
{
|
||||
try
|
||||
{
|
||||
m_pUpdateHelper->moveToInsertRow(); // otherwise append new line
|
||||
}
|
||||
catch(SQLException& e)
|
||||
// handling update failure
|
||||
{
|
||||
showErrorDialog(e);
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( !m_pUpdateHelper.get() )
|
||||
m_bError = true;
|
||||
break;
|
||||
case HtmlTokenId::TEXTTOKEN:
|
||||
|
@ -134,31 +134,17 @@ void ORTFReader::NextToken( int nToken )
|
||||
|
||||
case RTF_TROWD:
|
||||
{
|
||||
bool bInsertRow = true;
|
||||
if ( !m_xTable.is() ) // use first line as header
|
||||
{
|
||||
sal_uInt64 const nTell = rInput.Tell(); // perhaps alters position of the stream
|
||||
|
||||
m_bError = !CreateTable(nToken);
|
||||
bInsertRow = m_bAppendFirstLine;
|
||||
if ( m_bAppendFirstLine )
|
||||
{
|
||||
rInput.Seek(nTell);
|
||||
rInput.ResetError();
|
||||
}
|
||||
}
|
||||
if ( bInsertRow && !m_bError)
|
||||
{
|
||||
try
|
||||
{
|
||||
m_pUpdateHelper->moveToInsertRow(); // otherwise append new line
|
||||
}
|
||||
catch(SQLException& e)
|
||||
// handling update failure
|
||||
{
|
||||
showErrorDialog(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RTF_INTBL:
|
||||
|
@ -69,9 +69,6 @@ namespace dbaui
|
||||
{
|
||||
m_xParameters->setNull(_nPos,sqlType);
|
||||
}
|
||||
virtual void moveToInsertRow() override
|
||||
{
|
||||
}
|
||||
virtual void insertRow() override
|
||||
{
|
||||
m_xPrepared->executeUpdate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user