From f5b09b48c239825e1e94cdfbddb6f0d240fc133a Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 19 Feb 2017 22:32:26 +0100 Subject: [PATCH] cppcheck: unreadVariable Change-Id: I701431f0346727cbb039f18ade55b5a98c97a135 Reviewed-on: https://gerrit.libreoffice.org/34438 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/eventattachermgr/eventattachermgr.cxx | 2 -- dbaccess/source/core/api/OptimisticSet.cxx | 1 - 2 files changed, 3 deletions(-) diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 46be1454c8ef..19328a73e498 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -397,8 +397,6 @@ void SAL_CALL ImplEventAttacherManager::registerScriptEvent // Examine the index and apply the array std::deque::iterator aIt = implCheckIndex( nIndex ); - std::deque< AttachedObject_Impl > aList = (*aIt).aObjList; - ScriptEventDescriptor aEvt = ScriptEvent; sal_Int32 nLastDot = aEvt.ListenerType.lastIndexOf('.'); if (nLastDot != -1) diff --git a/dbaccess/source/core/api/OptimisticSet.cxx b/dbaccess/source/core/api/OptimisticSet.cxx index 84c3e6ff372d..e67b6e3662d0 100644 --- a/dbaccess/source/core/api/OptimisticSet.cxx +++ b/dbaccess/source/core/api/OptimisticSet.cxx @@ -551,7 +551,6 @@ void OptimisticSet::fillMissingValues(ORowSetValueVector::Vector& io_aRow) const { TSQLStatements aSql; TSQLStatements aKeyConditions; - std::map< OUString,bool > aResultSetChanged; OUString aQuote = getIdentifierQuoteString(); // here we build the condition part for the update statement SelectColumnsMetaData::const_iterator aColIter = m_pColumnNames->begin();