diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 14:51:52 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-07 05:56:59 +0000 |
commit | 37a6bafea8416541d7d250d66a9e951400b197a3 (patch) | |
tree | 7569e0394e9efae6ee610c6406f8b684ded9cabf /include/connectivity | |
parent | 5f6e5cb695ff4ab1e17653661d8243d836436a7e (diff) |
loplugin:unuseddefaultparam in various
Change-Id: I03d7381aad055cbe9bd905e4082586073f4112e0
Reviewed-on: https://gerrit.libreoffice.org/22900
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/dbexception.hxx | 4 | ||||
-rw-r--r-- | include/connectivity/sqlerror.hxx | 24 |
2 files changed, 4 insertions, 24 deletions
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx index e524c8404298..eb8bee388897 100644 --- a/include/connectivity/dbexception.hxx +++ b/include/connectivity/dbexception.hxx @@ -91,10 +91,8 @@ public: /** prepends a plain error message to the chain of exceptions @param _rSimpleErrorMessage the error message to prepend - @param _rSQLState - the SQLState of the to-be-constructed SQLException, or NULL if this should be defaulted to HY000 */ - void prepend( const OUString& _rErrorMessage, const OUString& _rSQLState = OUString() ); + void prepend( const OUString& _rErrorMessage ); /** appends a plain message to the chain of exceptions @param _eType diff --git a/include/connectivity/sqlerror.hxx b/include/connectivity/sqlerror.hxx index 87ff66f6bbfb..06cc14504e62 100644 --- a/include/connectivity/sqlerror.hxx +++ b/include/connectivity/sqlerror.hxx @@ -103,17 +103,11 @@ namespace connectivity will happen, and <code>_rParamValue2</code> and <code>_rParamValue3</code> will be ignored. - @param _rParamValue2 - the value which the placeholder $2$ should be replaced with. If this value is - not present (see <code>::boost::optional::operator !</code>), then no replacement - will happen, and <code>_rParamValue3</code> will be ignored. - @see css::sdb::ErrorCondition */ OUString getErrorMessage( const ErrorCondition _eCondition, - const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue() + const ParamValue& _rParamValue1 = ParamValue() ) const; /** returns the error code associated with a given error condition @@ -193,18 +187,12 @@ namespace connectivity which is associated with <arg>_eCondition</arg>, replacing the first placeholder in this message. - @param _rParamValue2 - a runtime-dependent value which should be filled into the error message - which is associated with <arg>_eCondition</arg>, replacing the second placeholder - in this message. - @see getErrorMessage @see getErrorCode */ void raiseException( const ErrorCondition _eCondition, - const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue() + const ParamValue& _rParamValue1 = ParamValue() ) const; /** raises a typed exception, that is, a UNO exception which is derived from @@ -226,11 +214,6 @@ namespace connectivity which is associated with <arg>_eCondition</arg>, replacing the first placeholder in this message. - @param _rParamValue2 - a runtime-dependent value which should be filled into the error message - which is associated with <arg>_eCondition</arg>, replacing the second placeholder - in this message. - @throws ::std::bad_cast if <arg>_rExceptionType</arg> does not specify an exception class derived from css::sdbc::SQLException. @@ -242,8 +225,7 @@ namespace connectivity const ErrorCondition _eCondition, const css::uno::Reference< css::uno::XInterface >& _rxContext, const css::uno::Type& _rExceptionType, - const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue() + const ParamValue& _rParamValue1 = ParamValue() ) const; /** retrieves an <code>SQLException</code> object which contains information about |