summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-31 21:45:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-01 10:40:14 +0100
commitec2aa9c5ba7a6ccd1f71c26cd78af11007ad5baa (patch)
treee701f793a1403e4b09f6fa87900c3ddf3eebba59 /connectivity
parent99542f5744b8feaec0c44081029cdedd93a77639 (diff)
coverity#1372390 Uncaught exception
Change-Id: I4bb01b0bb9865986d9da8ed294a46fa7a4488458
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FPreparedStatement.cxx2
-rw-r--r--connectivity/source/drivers/file/FStatement.cxx3
-rw-r--r--connectivity/source/inc/file/FPreparedStatement.hxx2
-rw-r--r--connectivity/source/inc/file/FStatement.hxx2
4 files changed, 4 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/FPreparedStatement.cxx b/connectivity/source/drivers/file/FPreparedStatement.cxx
index 20bb0ee0ddef..c59496af98f2 100644
--- a/connectivity/source/drivers/file/FPreparedStatement.cxx
+++ b/connectivity/source/drivers/file/FPreparedStatement.cxx
@@ -75,7 +75,7 @@ void OPreparedStatement::disposing()
}
}
-void OPreparedStatement::construct(const OUString& sql) throw(SQLException, RuntimeException)
+void OPreparedStatement::construct(const OUString& sql) throw(SQLException, RuntimeException, std::exception)
{
OStatement_Base::construct(sql);
diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx
index a4dc41d81f0f..2db04098760f 100644
--- a/connectivity/source/drivers/file/FStatement.cxx
+++ b/connectivity/source/drivers/file/FStatement.cxx
@@ -374,8 +374,7 @@ void OStatement_Base::setOrderbyColumn( OSQLParseNode* pColumnRef,
m_aOrderbyAscending.push_back((SQL_ISTOKEN(pAscendingDescending,DESC)) ? TAscendingOrder::DESC : TAscendingOrder::ASC);
}
-
-void OStatement_Base::construct(const OUString& sql) throw(SQLException, RuntimeException)
+void OStatement_Base::construct(const OUString& sql) throw(SQLException, RuntimeException, std::exception)
{
OUString aErr;
m_pParseTree = m_aParser.parseTree(aErr,sql);
diff --git a/connectivity/source/inc/file/FPreparedStatement.hxx b/connectivity/source/inc/file/FPreparedStatement.hxx
index 15a2f2dfeb8e..7d4d86855c9c 100644
--- a/connectivity/source/inc/file/FPreparedStatement.hxx
+++ b/connectivity/source/inc/file/FPreparedStatement.hxx
@@ -73,7 +73,7 @@ namespace connectivity
// a Constructor, that is needed for when Returning the Object is needed:
OPreparedStatement( OConnection* _pConnection);
- virtual void construct(const OUString& sql) throw(css::sdbc::SQLException, css::uno::RuntimeException) override;
+ virtual void construct(const OUString& sql) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
// OComponentHelper
virtual void SAL_CALL disposing() override;
diff --git a/connectivity/source/inc/file/FStatement.hxx b/connectivity/source/inc/file/FStatement.hxx
index 81ebaca16f0c..aa3398daa7c8 100644
--- a/connectivity/source/inc/file/FStatement.hxx
+++ b/connectivity/source/inc/file/FStatement.hxx
@@ -137,7 +137,7 @@ namespace connectivity
using OStatement_BASE::operator css::uno::Reference< css::uno::XInterface >;
- virtual void construct(const OUString& sql) throw(css::sdbc::SQLException, css::uno::RuntimeException);
+ virtual void construct(const OUString& sql) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception);
// OComponentHelper
virtual void SAL_CALL disposing() override;