diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 02:17:44 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 03:14:00 +0100 |
commit | 405caad685edd0ba914789bda01b5dc9b3030773 (patch) | |
tree | e5a16d9474717f67cfd029e1ed7b9ecdb0e738ab /connectivity | |
parent | 800376357fd1fc0594ba3dc5e0579fd163a3039a (diff) |
loplugin: unused variables
Change-Id: I46a748bf2c54d15c0f5718901197f3b4c34b82bf
Diffstat (limited to 'connectivity')
8 files changed, 3 insertions, 13 deletions
diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx index ef83e56ea80c..445226923259 100644 --- a/connectivity/source/commontools/parameters.cxx +++ b/connectivity/source/commontools/parameters.cxx @@ -422,7 +422,6 @@ namespace dbtools sal_Int32 nSmallestIndexLinkedByColumnName = -1; sal_Int32 nLargestIndexNotLinkedByColumnName = -1; #endif - ::rtl::OUString sName; for ( ParameterInformation::iterator aParam = m_aParameterInformation.begin(); aParam != m_aParameterInformation.end(); ++aParam diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx index 5f0beab19a8f..0683af96b69a 100644 --- a/connectivity/source/drivers/file/FConnection.cxx +++ b/connectivity/source/drivers/file/FConnection.cxx @@ -130,7 +130,7 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV { sal_Int32 nLen = url.indexOf(':'); nLen = url.indexOf(':',nLen+1); - ::rtl::OUString aDSN(url.copy(nLen+1)),aUID,aPWD; + ::rtl::OUString aDSN(url.copy(nLen+1)); String aFileName = aDSN; INetURLObject aURL; diff --git a/connectivity/source/drivers/file/FDateFunctions.cxx b/connectivity/source/drivers/file/FDateFunctions.cxx index e45228aa2f57..b9a20b1fd00d 100644 --- a/connectivity/source/drivers/file/FDateFunctions.cxx +++ b/connectivity/source/drivers/file/FDateFunctions.cxx @@ -186,7 +186,6 @@ ORowSetValue OOp_Quarter::operate(const ORowSetValue& lhs) const sal_Int32 nRet = 1; ::com::sun::star::util::Date aD = lhs; - Date aDate(aD.Day,aD.Month,aD.Year); if ( aD.Month >= 4 && aD.Month < 7 ) nRet = 2; else if ( aD.Month >= 7 && aD.Month < 10 ) diff --git a/connectivity/source/drivers/file/FStatement.cxx b/connectivity/source/drivers/file/FStatement.cxx index 4b4c886a8b2d..7d247247b7c7 100644 --- a/connectivity/source/drivers/file/FStatement.cxx +++ b/connectivity/source/drivers/file/FStatement.cxx @@ -616,7 +616,6 @@ void OStatement_Base::GetAssignValues() OSL_ENSURE(pInsertAtomCommalist != NULL,"OResultSet: pInsertAtomCommalist darf nicht NULL sein!"); OSL_ENSURE(pInsertAtomCommalist->count() > 0,"OResultSet: pInsertAtomCommalist <= 0"); - String aColumnName; OSQLParseNode * pRow_Value_Const; xub_StrLen nIndex=0; for (sal_uInt32 i = 0; i < pInsertAtomCommalist->count(); i++) diff --git a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx index 1507b8b6ec2e..46627c0e460f 100644 --- a/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx +++ b/connectivity/source/drivers/mork/MDatabaseMetaDataHelper.cxx @@ -50,9 +50,6 @@ MDatabaseMetaDataHelper::~MDatabaseMetaDataHelper() sal_Bool MDatabaseMetaDataHelper::getTableStrings( OConnection* _pCon, ::std::vector< ::rtl::OUString >& _rStrings) { - ::rtl::OUString sAbURI; - ::rtl::OString sAbURIString; - SAL_INFO("connectivity.mork", "=> MDatabaseMetaDataHelper::getTableStrings()"); /* add default table */ @@ -89,7 +86,6 @@ sal_Bool MDatabaseMetaDataHelper::getTables( OConnection* _pCon, aRows.clear(); ::std::vector< ::rtl::OUString > tables; - OUString matchAny = "%"; if ( !getTableStrings( _pCon, tables ) ) return sal_False; diff --git a/connectivity/source/drivers/mysql/YViews.cxx b/connectivity/source/drivers/mysql/YViews.cxx index dd0b02fea7db..eb1a8d7f2103 100644 --- a/connectivity/source/drivers/mysql/YViews.cxx +++ b/connectivity/source/drivers/mysql/YViews.cxx @@ -127,7 +127,7 @@ void OViews::createView( const Reference< XPropertySet >& descriptor ) ::rtl::OUString aSql( "CREATE VIEW " ); ::rtl::OUString aQuote = xConnection->getMetaData()->getIdentifierQuoteString( ); - ::rtl::OUString sSchema,sCommand; + ::rtl::OUString sCommand; aSql += ::dbtools::composeTableName( m_xMetaData, descriptor, ::dbtools::eInTableDefinitions, false, false, true ); diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 015fe534d8b9..1c0d52ad887b 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -399,7 +399,6 @@ void Connection::setCatalog( const ::rtl::OUString& ) ::rtl::OUString Connection::getCatalog() throw (SQLException, RuntimeException) { - OUString ret; MutexGuard guard( m_refMutex->mutex ); if( m_settings.pConnection == 0 ) { diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index d2a63e29251e..ff64e506e1d9 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -871,7 +871,6 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo { ::rtl::OUString aColumnName; ::rtl::OUString aTypeName; - ::rtl::OUString aTableRange; sal_Int32 nType = DataType::VARCHAR; aColumnName = pColumnRef->getChild(0)->getTokenValue(); @@ -985,7 +984,6 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele { // Function call present pColumnRef->parseNodeToStr( sColumnName, m_pImpl->m_xConnection, NULL, sal_False, sal_True ); - ::rtl::OUString sTableRange; // check if the column is also a parameter traverseORCriteria(pColumnRef); // num_value_exp @@ -1074,7 +1072,7 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo OSL_ENSURE(!_bOrder || SQL_ISRULE(pOrderingSpecCommalist,ordering_spec_commalist),"OSQLParseTreeIterator:ordering_spec_commalist error in parse tree!"); OSL_ENSURE(pOrderingSpecCommalist->count() > 0,"OSQLParseTreeIterator: error in parse tree!"); - ::rtl::OUString sColumnName,aColumnAlias; + ::rtl::OUString sColumnName; ::rtl::OUString aTableRange; sal_uInt32 nCount = pOrderingSpecCommalist->count(); for (sal_uInt32 i = 0; i < nCount; ++i) |