diff options
author | Gökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr> | 2018-04-16 15:33:03 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-17 08:14:56 +0200 |
commit | 0f166ef5240ee155bf2544e6bc3c985b1e3bf646 (patch) | |
tree | ece7b6b86e2426f3ec794130b1dfe2f4b29bf97d /dbaccess | |
parent | b9f9f8253f89151beed27499e6db5c11a7d81eba (diff) |
cppcheck - fix variableScope in some files
Reduced the scope of some variables in source.
Change-Id: Ib3b521ca5df8b9b254b51eab5f1d7040d6cfd846
Reviewed-on: https://gerrit.libreoffice.org/52974
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index e3ca3e8af707..077376b66ceb 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -640,13 +640,11 @@ namespace { // we have to look if we have alias.* here but before we have to check if the column doesn't already exist OTableFieldDescRef aInfo = new OTableFieldDesc(); - bool bFound = false; for (auto const& table : rTabList) { OQueryTableWindow* pTabWin = static_cast<OQueryTableWindow*>(table.second.get()); - bFound = pTabWin->ExistsField( rFieldName, aInfo ); - if ( bFound ) + if ( pTabWin->ExistsField( rFieldName, aInfo ) ) { rFieldName = aInfo->GetField(); break; |