diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-08 21:09:53 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-09 03:20:51 +0000 |
commit | 141469eb831c054d6f4b56fcaa50a03e52429f11 (patch) | |
tree | ce450b9ba8bfb5f601c439e7597882da4b6f95a3 /dbaccess/source/ui/tabledesign/TEditControl.cxx | |
parent | 887cb59ac4bfca94f310baee3e9da58ccf9cb3e3 (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.cxx | 3 |
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++; } |