summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-04 14:51:52 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-07 05:56:59 +0000
commit37a6bafea8416541d7d250d66a9e951400b197a3 (patch)
tree7569e0394e9efae6ee610c6406f8b684ded9cabf /connectivity
parent5f6e5cb695ff4ab1e17653661d8243d836436a7e (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 'connectivity')
-rw-r--r--connectivity/source/commontools/dbexception.cxx4
-rw-r--r--connectivity/source/commontools/sqlerror.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index 04a71ee4f9e0..15816a279ade 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.cxx
@@ -185,12 +185,12 @@ SQLExceptionInfo::operator const ::com::sun::star::sdb::SQLContext*() const
}
-void SQLExceptionInfo::prepend( const OUString& _rErrorMessage, const OUString& _rSQLState )
+void SQLExceptionInfo::prepend( const OUString& _rErrorMessage )
{
SQLException aException;
aException.Message = _rErrorMessage;
aException.ErrorCode = 0;
- aException.SQLState = !_rSQLState.isEmpty() ? _rSQLState : "S1000";
+ aException.SQLState = "S1000";
aException.NextException = m_aContent;
m_aContent <<= aException;
diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx
index 8054c59d194b..949cba5cb3de 100644
--- a/connectivity/source/commontools/sqlerror.cxx
+++ b/connectivity/source/commontools/sqlerror.cxx
@@ -293,9 +293,9 @@ namespace connectivity
}
- OUString SQLError::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2 ) const
+ OUString SQLError::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1 ) const
{
- return m_pImpl->getErrorMessage( _eCondition, _rParamValue1, _rParamValue2, ParamValue() );
+ return m_pImpl->getErrorMessage( _eCondition, _rParamValue1, ParamValue(), ParamValue() );
}
@@ -311,16 +311,16 @@ namespace connectivity
}
- void SQLError::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2 ) const
+ void SQLError::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1 ) const
{
- m_pImpl->raiseException( _eCondition, _rParamValue1, _rParamValue2, ParamValue() );
+ m_pImpl->raiseException( _eCondition, _rParamValue1, ParamValue(), ParamValue() );
}
void SQLError::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext,
- const Type& _rExceptionType, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2 ) const
+ const Type& _rExceptionType, const ParamValue& _rParamValue1 ) const
{
- m_pImpl->raiseTypedException( _eCondition, _rxContext, _rExceptionType, _rParamValue1, _rParamValue2, ParamValue() );
+ m_pImpl->raiseTypedException( _eCondition, _rxContext, _rExceptionType, _rParamValue1, ParamValue(), ParamValue() );
}