diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-27 16:41:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-27 16:41:41 +0000 |
commit | 3820f0e7e17eeae559b2b3f22561316dd0e1835b (patch) | |
tree | cc67061c745c473bf0e4cc8c5e03661f098fab2d | |
parent | 259c23ede7cf7faf1b5c90d35b5ed8b50b6b84ee (diff) |
WaE: gcc 4.6.0 various warnings
-rw-r--r-- | connectivity/source/drivers/mozab/MResultSet.cxx | 3 | ||||
-rw-r--r-- | framework/source/classes/propertysethelper.cxx | 5 |
2 files changed, 0 insertions, 8 deletions
diff --git a/connectivity/source/drivers/mozab/MResultSet.cxx b/connectivity/source/drivers/mozab/MResultSet.cxx index 8cc5bb40bec1..17f2eb4f851e 100644 --- a/connectivity/source/drivers/mozab/MResultSet.cxx +++ b/connectivity/source/drivers/mozab/MResultSet.cxx @@ -1224,7 +1224,6 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep else { sal_Bool bDistinct = sal_False; - sal_Bool bWasSorted = sal_False; OSQLParseNode *pDistinct = m_pParseTree->getChild(1); if (pDistinct && pDistinct->getTokenID() == SQL_TOKEN_DISTINCT) { @@ -1233,8 +1232,6 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep m_aOrderbyColumnNumber.push_back(m_aColMapping[1]); m_aOrderbyAscending.push_back(SQL_DESC); } - else - bWasSorted = sal_True; bDistinct = sal_True; } diff --git a/framework/source/classes/propertysethelper.cxx b/framework/source/classes/propertysethelper.cxx index 0eca64e60746..68f190a95f44 100644 --- a/framework/source/classes/propertysethelper.cxx +++ b/framework/source/classes/propertysethelper.cxx @@ -291,13 +291,8 @@ css::uno::Any SAL_CALL PropertySetHelper::getPropertyValue(const ::rtl::OUString css::beans::Property aPropInfo = pIt->second; - sal_Bool bLocked = sal_True; if (m_bReleaseLockOnCall) - { aReadLock.unlock(); - bLocked = sal_False; - // <- SAFE - } return impl_getPropertyValue(aPropInfo.Name, aPropInfo.Handle); } |