summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/TEditControl.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-08 21:09:53 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-09 03:20:51 +0000
commit141469eb831c054d6f4b56fcaa50a03e52429f11 (patch)
treece450b9ba8bfb5f601c439e7597882da4b6f95a3 /dbaccess/source/ui/tabledesign/TEditControl.cxx
parent887cb59ac4bfca94f310baee3e9da58ccf9cb3e3 (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I8931ff46394923d672e08b3a5c9ab75bb6ffb0a9 Reviewed-on: https://gerrit.libreoffice.org/13385 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TEditControl.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index a9af7d9d0e6d..ce169f3837d2 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -488,11 +488,10 @@ sal_Int32 OTableEditorCtrl::HasFieldName( const OUString& rFieldName )
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_pRowList->begin();
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_pRowList->end();
- OFieldDescription* pFieldDescr;
sal_Int32 nCount(0);
for(;aIter != aEnd;++aIter)
{
- pFieldDescr = (*aIter)->GetActFieldDescr();
+ OFieldDescription* pFieldDescr = (*aIter)->GetActFieldDescr();
if( pFieldDescr && bCase(rFieldName,pFieldDescr->GetName()))
nCount++;
}