diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-03 10:15:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-03 11:15:52 +0200 |
commit | a9b7c6f4b72ecf141203c03664bed0ca81057e01 (patch) | |
tree | 1f1dadb0218b8b0178679a1436f80ce68967bcb9 /include | |
parent | 99469ae7b9e3c6311ad2d5f894345df03efe7587 (diff) |
loplugin:unuseddefaultparams in include/filter
Change-Id: I893b50835717d449e495e00e9b33de0b60467a6e
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/dbexception.hxx | 17 | ||||
-rw-r--r-- | include/connectivity/dbtools.hxx | 3 | ||||
-rw-r--r-- | include/connectivity/predicateinput.hxx | 15 | ||||
-rw-r--r-- | include/connectivity/sqlerror.hxx | 24 |
4 files changed, 11 insertions, 48 deletions
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx index 83caae02e9ef..e524c8404298 100644 --- a/include/connectivity/dbexception.hxx +++ b/include/connectivity/dbexception.hxx @@ -93,10 +93,8 @@ public: the error message to prepend @param _rSQLState the SQLState of the to-be-constructed SQLException, or NULL if this should be defaulted to HY000 - @param _nErrorCode - the ErrorCode of the to-be-constructed SQLException */ - void prepend( const OUString& _rErrorMessage, const OUString& _rSQLState = OUString(), const sal_Int32 _nErrorCode = 0 ); + void prepend( const OUString& _rErrorMessage, const OUString& _rSQLState = OUString() ); /** appends a plain message to the chain of exceptions @param _eType @@ -222,8 +220,7 @@ OOO_DLLPUBLIC_DBTOOLS OUString getStandardSQLState( StandardSQLState _eState ); */ OOO_DLLPUBLIC_DBTOOLS void throwFunctionNotSupportedSQLException( const OUString& _rFunctionName, - const css::uno::Reference< css::uno::XInterface >& _rxContext, - const css::uno::Any& _rNextException = css::uno::Any() + const css::uno::Reference< css::uno::XInterface >& _rxContext ) throw ( css::sdbc::SQLException ); @@ -276,13 +273,10 @@ OOO_DLLPUBLIC_DBTOOLS void throwGenericSQLException( name is built from the name of the interface plus its method, for instance "XParameters::updateBinaryStream" @param _rxContext the context of the exception - @param _pNextException - the next exception to chain into the thrown exception, if any */ OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedSQLException( const OUString& _rFeatureName, - 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); @@ -292,8 +286,6 @@ OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedSQLException( name is built from the name of the interface plus its method, for instance "XParameters::updateBinaryStream" @param _rxContext the context of the exception - @param _pNextException - the next exception to chain into the thrown exception, if any */ OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedRuntimeException( const OUString& _rFeatureName, @@ -332,8 +324,7 @@ OOO_DLLPUBLIC_DBTOOLS void throwSQLException( const OUString& _rMessage, StandardSQLState _eSQLState, const css::uno::Reference< css::uno::XInterface >& _rxContext, - const sal_Int32 _nErrorCode = 0, - const css::uno::Any* _pNextException = nullptr + const sal_Int32 _nErrorCode = 0 ) throw (css::sdbc::SQLException); diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx index 515a4dc400b1..18e0919c6c75 100644 --- a/include/connectivity/dbtools.hxx +++ b/include/connectivity/dbtools.hxx @@ -306,8 +306,7 @@ namespace dbtools const css::sdbc::SQLException& _rChainedException, const css::uno::Reference< css::uno::XInterface >& _rxContext, const OUString& _rAdditionalError, - const StandardSQLState _eSQLState = StandardSQLState::ERROR_UNSPECIFIED, - const sal_Int32 _nErrorCode = 0); + const StandardSQLState _eSQLState = StandardSQLState::ERROR_UNSPECIFIED); /** search the parent hierarchy for a data source. */ diff --git a/include/connectivity/predicateinput.hxx b/include/connectivity/predicateinput.hxx index 0d80598fa431..16ace17d9108 100644 --- a/include/connectivity/predicateinput.hxx +++ b/include/connectivity/predicateinput.hxx @@ -79,36 +79,27 @@ namespace dbtools the value which has been normalized using normalizePredicateString @param _rxField is the field for which a predicate is to be entered - @param _pErrorMessage - If not <NULL/>, and a parsing error occurs, the error message will be copied to the string the argument - points to. @see normalizePredicateString */ OUString getPredicateValueStr( const OUString& _rPredicateValue, - const css::uno::Reference< css::beans::XPropertySet > & _rxField, - OUString* _pErrorMessage = nullptr + const css::uno::Reference< css::beans::XPropertySet > & _rxField ) const; OUString getPredicateValueStr( const OUString& _sField - , const OUString& _rPredicateValue - , OUString* _pErrorMessage = nullptr) const; + , const OUString& _rPredicateValue) const; /** get the value of the predicate, either as an empty or as a string @param _rPredicateValue the value which has been normalized using normalizePredicateString @param _rxField is the field for which a predicate is to be entered - @param _pErrorMessage - If not <NULL/>, and a parsing error occurs, the error message will be copied to the string the argument - points to. @see normalizePredicateString */ css::uno::Any getPredicateValue( const OUString& _rPredicateValue, - const css::uno::Reference< css::beans::XPropertySet > & _rxField, - OUString* _pErrorMessage = nullptr + const css::uno::Reference< css::beans::XPropertySet > & _rxField ) const; private: diff --git a/include/connectivity/sqlerror.hxx b/include/connectivity/sqlerror.hxx index 1484b905eb1b..87ff66f6bbfb 100644 --- a/include/connectivity/sqlerror.hxx +++ b/include/connectivity/sqlerror.hxx @@ -108,18 +108,12 @@ namespace connectivity not present (see <code>::boost::optional::operator !</code>), then no replacement will happen, and <code>_rParamValue3</code> will be ignored. - @param _rParamValue1 - the value which the placeholder $1$ should be replaced with. If this value is - not present (see <code>::boost::optional::operator !</code>), then no replacement - will happen. - @see css::sdb::ErrorCondition */ OUString getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue(), - const ParamValue& _rParamValue3 = ParamValue() + const ParamValue& _rParamValue2 = ParamValue() ) const; /** returns the error code associated with a given error condition @@ -204,19 +198,13 @@ namespace connectivity which is associated with <arg>_eCondition</arg>, replacing the second placeholder in this message. - @param _rParamValue3 - a runtime-dependent value which should be filled into the error message - which is associated with <arg>_eCondition</arg>, replacing the third placeholder - in this message. - @see getErrorMessage @see getErrorCode */ void raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue(), - const ParamValue& _rParamValue3 = ParamValue() + const ParamValue& _rParamValue2 = ParamValue() ) const; /** raises a typed exception, that is, a UNO exception which is derived from @@ -243,11 +231,6 @@ namespace connectivity which is associated with <arg>_eCondition</arg>, replacing the second placeholder in this message. - @param _rParamValue3 - a runtime-dependent value which should be filled into the error message - which is associated with <arg>_eCondition</arg>, replacing the third placeholder - in this message. - @throws ::std::bad_cast if <arg>_rExceptionType</arg> does not specify an exception class derived from css::sdbc::SQLException. @@ -260,8 +243,7 @@ namespace connectivity const css::uno::Reference< css::uno::XInterface >& _rxContext, const css::uno::Type& _rExceptionType, const ParamValue& _rParamValue1 = ParamValue(), - const ParamValue& _rParamValue2 = ParamValue(), - const ParamValue& _rParamValue3 = ParamValue() + const ParamValue& _rParamValue2 = ParamValue() ) const; /** retrieves an <code>SQLException</code> object which contains information about |