Kaydet (Commit) 3571121d authored tarafından serval's avatar serval Kaydeden (comit) Caolán McNamara

Some cppcheck cleaning

üst a6bd4883
...@@ -1821,7 +1821,6 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi ...@@ -1821,7 +1821,6 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi
::rtl::Reference< ::connectivity::OSQLColumns> aColumns = new ::connectivity::OSQLColumns(); ::rtl::Reference< ::connectivity::OSQLColumns> aColumns = new ::connectivity::OSQLColumns();
::std::vector< ::rtl::OUString> aNames; ::std::vector< ::rtl::OUString> aNames;
::rtl::OUString aDescription; ::rtl::OUString aDescription;
sal_Int32 nFormatKey = 0;
const ::std::map<sal_Int32,sal_Int32>& rKeyColumns = m_pCache->getKeyColumns(); const ::std::map<sal_Int32,sal_Int32>& rKeyColumns = m_pCache->getKeyColumns();
if(!m_xColumns.is()) if(!m_xColumns.is())
...@@ -1872,7 +1871,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi ...@@ -1872,7 +1871,7 @@ void ORowSet::execute_NoApprove_NoNewConn(ResettableMutexGuard& _rClearForNotifi
try try
{ {
nFormatKey = 0; sal_Int32 nFormatKey = 0;
if(m_xNumberFormatTypes.is()) if(m_xNumberFormatTypes.is())
nFormatKey = ::dbtools::getDefaultNumberFormat(pColumn,m_xNumberFormatTypes,aLocale); nFormatKey = ::dbtools::getDefaultNumberFormat(pColumn,m_xNumberFormatTypes,aLocale);
......
...@@ -570,7 +570,7 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const ...@@ -570,7 +570,7 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
{ {
throw IllegalArgumentException(); throw IllegalArgumentException();
} }
catch(WrappedTargetException e) catch(WrappedTargetException &e)
{ {
throw; throw;
} }
......
...@@ -364,7 +364,7 @@ namespace dbaui ...@@ -364,7 +364,7 @@ namespace dbaui
} }
return xRet; return xRet;
} }
catch (com::sun::star::io::WrongFormatException e) catch (com::sun::star::io::WrongFormatException &e)
{ {
com::sun::star::sdbc::SQLException aSQLException; com::sun::star::sdbc::SQLException aSQLException;
aSQLException.Message = e.Message; aSQLException.Message = e.Message;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment