summaryrefslogtreecommitdiff
path: root/dbaccess/source/core
diff options
context:
space:
mode:
authorserval <serval2412@yahoo.fr>2011-01-15 17:09:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-15 17:09:39 +0000
commit47e1b5e9bf38ee6af629ed7e3e74d6b7a5519d86 (patch)
treecd9e6802e72d0811eae07f69c4ea39332797349b /dbaccess/source/core
parent0afe2266016b03f6e11008463042c7daacead0e1 (diff)
Some cppcheck cleaning
Diffstat (limited to 'dbaccess/source/core')
-rw-r--r--dbaccess/source/core/api/RowSet.cxx3
-rw-r--r--dbaccess/source/core/dataaccess/documentcontainer.cxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index 37758964c..f12afb9f6 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -1821,7 +1821,6 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi
::rtl::Reference< ::connectivity::OSQLColumns> aColumns = new ::connectivity::OSQLColumns();
::std::vector< ::rtl::OUString> aNames;
::rtl::OUString aDescription;
- sal_Int32 nFormatKey = 0;
const ::std::map<sal_Int32,sal_Int32>& rKeyColumns = m_pCache->getKeyColumns();
if(!m_xColumns.is())
@@ -1872,7 +1871,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi
try
{
- nFormatKey = 0;
+ sal_Int32 nFormatKey = 0;
if(m_xNumberFormatTypes.is())
nFormatKey = ::dbtools::getDefaultNumberFormat(pColumn,m_xNumberFormatTypes,aLocale);
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index 26d9ec1a6..b45850b6b 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -570,7 +570,7 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
{
throw IllegalArgumentException();
}
- catch(WrappedTargetException e)
+ catch(WrappedTargetException &e)
{
throw;
}