summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-03-12 21:27:17 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 22:29:28 +0000
commitaa580276e5415bdf7c5e6eba445f812acd1cbe32 (patch)
tree132f889696a59b2c2d8a17cf895ba1f08670c462 /dbaccess
parentc3cd1005568469dc2514627c76378c2f84da2b0d (diff)
CppCheck cleaning : reduce scope
Change-Id: Iefb21089b9b2a088430314b715df39129fc394bd Reviewed-on: https://gerrit.libreoffice.org/14845 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/WNameMatch.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx
index 6ff753110814..52af008b4979 100644
--- a/dbaccess/source/ui/misc/WNameMatch.cxx
+++ b/dbaccess/source/ui/misc/WNameMatch.cxx
@@ -157,13 +157,15 @@ bool OWizNameMatching::LeavePage()
OSL_ENSURE((nPos) < static_cast<sal_Int32>(m_pParent->m_vColumnPos.size()),"m_pParent->m_vColumnPos: Illegal index for vector");
m_pParent->m_vColumnPos[nPos].first = ++nParamPos;
m_pParent->m_vColumnPos[nPos].second = ::std::distance(rDestColumns.begin(),aDestIter) + 1;
- bool bNotConvert = true;
TOTypeInfoSP pTypeInfo;
assert(aDestIter != aDestEnd);
if (aDestIter != aDestEnd)
- pTypeInfo = m_pParent->convertType((*aDestIter)->second->getSpecialTypeInfo(),bNotConvert);
+ {
+ bool bNotConvert = true;
+ pTypeInfo = m_pParent->convertType((*aDestIter)->second->getSpecialTypeInfo(), bNotConvert);
+ }
sal_Int32 nType = ::com::sun::star::sdbc::DataType::VARCHAR;
if ( pTypeInfo.get() )