Kaydet (Commit) d298cfd9 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unuseddefaultparams in mysqlc

Change-Id: I83e27ed242b6ec1fbd19e473a4d8c0f4588e6f86
üst e13ba2d4
...@@ -32,7 +32,7 @@ using com::sun::star::uno::Any; ...@@ -32,7 +32,7 @@ using com::sun::star::uno::Any;
namespace mysqlc_sdbc_driver 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) throw (SQLException)
{ {
const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": feature not implemented."; const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": feature not implemented.";
...@@ -41,11 +41,11 @@ void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, co ...@@ -41,11 +41,11 @@ void throwFeatureNotImplementedException( const sal_Char* _pAsciiFeatureName, co
_rxContext, _rxContext,
rtl::OUString("HYC00"), rtl::OUString("HYC00"),
0, 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) throw (SQLException)
{ {
const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": invalid arguments."; const rtl::OUString sMessage = rtl::OUString::createFromAscii( _pAsciiFeatureName ) + ": invalid arguments.";
...@@ -54,7 +54,7 @@ void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Re ...@@ -54,7 +54,7 @@ void throwInvalidArgumentException( const sal_Char* _pAsciiFeatureName, const Re
_rxContext, _rxContext,
rtl::OUString("HYC00"), rtl::OUString("HYC00"),
0, 0,
_pNextException ? *_pNextException : Any() Any()
); );
} }
......
...@@ -33,15 +33,13 @@ namespace mysqlc_sdbc_driver ...@@ -33,15 +33,13 @@ namespace mysqlc_sdbc_driver
void throwFeatureNotImplementedException( void throwFeatureNotImplementedException(
const sal_Char* _pAsciiFeatureName, const sal_Char* _pAsciiFeatureName,
const css::uno::Reference< css::uno::XInterface >& _rxContext, const css::uno::Reference< css::uno::XInterface >& _rxContext
const css::uno::Any* _pNextException = nullptr
) )
throw (css::sdbc::SQLException); throw (css::sdbc::SQLException);
void throwInvalidArgumentException( void throwInvalidArgumentException(
const sal_Char* _pAsciiFeatureName, const sal_Char* _pAsciiFeatureName,
const css::uno::Reference< css::uno::XInterface >& _rxContext, const css::uno::Reference< css::uno::XInterface >& _rxContext
const css::uno::Any* _pNextException = nullptr
) )
throw (css::sdbc::SQLException); throw (css::sdbc::SQLException);
......
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