diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 09:05:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 11:02:19 +0200 |
commit | 3e4b0bde6252b80ccc99c8b9ae261d79456ba026 (patch) | |
tree | 2013dd4708bea9d1ae542704ef8bb85704e12573 /connectivity | |
parent | 351202fd9bff1a9cf5b82d6aef5df14a4222a5e9 (diff) |
loplugin:unusedfields some untouched fields
which lead to a whole bunch of dead code in vcl/.../i18n_status.cxx
Change-Id: Id8eeadeb9cbc6107e1a0dac5801ce20b2b9ae6dc
Reviewed-on: https://gerrit.libreoffice.org/40355
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/sqlerror.cxx | 11 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NResultSet.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/mork/MConnection.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 4 |
4 files changed, 8 insertions, 11 deletions
diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx index 01e07b26721f..8efc72ceccfd 100644 --- a/connectivity/source/commontools/sqlerror.cxx +++ b/connectivity/source/commontools/sqlerror.cxx @@ -56,7 +56,7 @@ namespace connectivity class SQLError_Impl { public: - explicit SQLError_Impl( const Reference<XComponentContext> & _rxContext ); + explicit SQLError_Impl(); // versions of the public SQLError methods which are just delegated to this impl-class static const OUString& getMessagePrefix(); @@ -86,14 +86,11 @@ namespace connectivity private: ::osl::Mutex m_aMutex; - Reference<XComponentContext> m_aContext; std::unique_ptr<std::locale> m_xResources; bool m_bAttemptedInit; }; - SQLError_Impl::SQLError_Impl( const Reference<XComponentContext> & _rxContext ) - :m_aContext( _rxContext ) - ,m_bAttemptedInit( false ) + SQLError_Impl::SQLError_Impl() : m_bAttemptedInit( false ) { } @@ -276,8 +273,8 @@ namespace connectivity return m_xResources.get() != nullptr; } - SQLError::SQLError( const Reference<XComponentContext> & _rxContext ) - :m_pImpl( new SQLError_Impl( _rxContext ) ) + SQLError::SQLError() + :m_pImpl( new SQLError_Impl ) { } diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 83b05ef3fb18..52bc5b567de1 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -668,7 +668,7 @@ void OEvoabResultSet::construct( const QueryData& _rData ) case eFilterNone: if ( !m_pVersionHelper->isLocal( pBook ) ) { - SQLError aErrorFactory( comphelper::getComponentContext(m_pConnection->getDriver().getMSFactory()) ); + SQLError aErrorFactory; SQLException aAsException = aErrorFactory.getSQLException( ErrorCondition::DATA_CANNOT_SELECT_UNFILTERED, *this ); m_aWarnings.appendWarning( SQLWarning( aAsException.Message, diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx index 9c421095232a..32ea6b192128 100644 --- a/connectivity/source/drivers/mork/MConnection.cxx +++ b/connectivity/source/drivers/mork/MConnection.cxx @@ -390,7 +390,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer if ( _rError.getErrorCondition() != 0 ) { - SQLError aErrorHelper( comphelper::getComponentContext(getDriver()->getFactory()) ); + SQLError aErrorHelper; const OUString& sParameter( _rError.getParameter() ); if ( !sParameter.isEmpty() ) aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext, sParameter ); diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index 36274ffbe02d..b7464836e90b 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -639,7 +639,7 @@ bool OSQLParseNode::impl_parseTableNameNodeToString_throw( OUStringBuffer& rStri } else { - SQLError aErrors( ::comphelper::getProcessComponentContext() ); + SQLError aErrors; aErrors.raiseException( sdb::ErrorCondition::PARSER_CYCLIC_SUB_QUERIES ); } } @@ -1298,7 +1298,7 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString OSQLParser::OSQLParser(const css::uno::Reference< css::uno::XComponentContext >& rxContext, const IParseContext* _pContext) :m_pContext(_pContext) ,m_pParseTree(nullptr) - ,m_pData( new OSQLParser_Data( rxContext ) ) + ,m_pData( new OSQLParser_Data ) ,m_nFormatKey(0) ,m_nDateFormatKey(0) ,m_xContext(rxContext) |