summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 08:13:14 +0200
committerNoel Grandin <noel@peralex.com>2016-03-03 08:13:14 +0200
commitd298cfd9864d5a742f966fa6584b34f3b72cd6a0 (patch)
tree462344130c707c7246f48a48329eb302a7e5d8ca /mysqlc
parente13ba2d41deb93da53607a924e234730f4e0349c (diff)
loplugin:unuseddefaultparams in mysqlc
Change-Id: I83e27ed242b6ec1fbd19e473a4d8c0f4588e6f86
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_general.cxx8
-rw-r--r--mysqlc/source/mysqlc_general.hxx6
2 files changed, 6 insertions, 8 deletions
diff --git a/mysqlc/source/mysqlc_general.cxx b/mysqlc/source/mysqlc_general.cxx
index 57683f666edb..301caa2ca979 100644
--- a/mysqlc/source/mysqlc_general.cxx
+++ b/mysqlc/source/mysqlc_general.cxx
@@ -32,7 +32,7 @@ using com::sun::star::uno::Any;
namespace mysqlc_sdbc_driver
{
-void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext, const Any* _pNextException )
+void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext )
throw (SQLException)
{
const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": feature not implemented.";
@@ -41,11 +41,11 @@ void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, co
_rxContext,
rtl::OUString("HYC00"),
0,
- _pNextException ? *_pNextException : Any()
+ Any()
);
}
-void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext, const Any* _pNextException )
+void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Reference< XInterface >& _rxContext )
throw (SQLException)
{
const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": invalid arguments.";
@@ -54,7 +54,7 @@ void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Re
_rxContext,
rtl::OUString("HYC00"),
0,
- _pNextException ? *_pNextException : Any()
+ Any()
);
}
diff --git a/mysqlc/source/mysqlc_general.hxx b/mysqlc/source/mysqlc_general.hxx
index d0a9c27de440..9e4417dbc5a4 100644
--- a/mysqlc/source/mysqlc_general.hxx
+++ b/mysqlc/source/mysqlc_general.hxx
@@ -33,15 +33,13 @@ namespace mysqlc_sdbc_driver
void throwFeatureNotImplementedException(
const sal_Char* _pAsciiFeatureName,
- const css::uno::Reference< css::uno::XInterface >& _rxContext,
- const css::uno::Any* _pNextException = nullptr
+ const css::uno::Reference< css::uno::XInterface >& _rxContext
)
throw (css::sdbc::SQLException);
void throwInvalidArgumentException(
const sal_Char* _pAsciiFeatureName,
- const css::uno::Reference< css::uno::XInterface >& _rxContext,
- const css::uno::Any* _pNextException = nullptr
+ const css::uno::Reference< css::uno::XInterface >& _rxContext
)
throw (css::sdbc::SQLException);