diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-02-20 16:03:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-02-21 08:09:46 +0100 |
commit | ba8a70365ef459c967cd8a71a6d48ca53dd341bd (patch) | |
tree | 397ae034cac2f06ea40ed550a7ce39cf4a42966e /dbaccess | |
parent | 0adb36835bcbe55bdf2717556a98e51f1873b19f (diff) |
New loplugin:nestedunnamed
Change-Id: Ifb434589ef08428ce609bc7a40b015d4df13224c
Reviewed-on: https://gerrit.libreoffice.org/50048
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 8a0f82fd05d3..ee67a9a69fe2 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -1685,18 +1685,15 @@ namespace return eErrorCode; } - namespace + OQueryTableWindow* lcl_findColumnInTables( const OUString& _rColumName, const OJoinTableView::OTableWindowMap& _rTabList, OTableFieldDescRef const & _rInfo ) { - OQueryTableWindow* lcl_findColumnInTables( const OUString& _rColumName, const OJoinTableView::OTableWindowMap& _rTabList, OTableFieldDescRef const & _rInfo ) + for (auto const& table : _rTabList) { - for (auto const& table : _rTabList) - { - OQueryTableWindow* pTabWin = static_cast< OQueryTableWindow* >( table.second.get() ); - if ( pTabWin && pTabWin->ExistsField( _rColumName, _rInfo ) ) - return pTabWin; - } - return nullptr; + OQueryTableWindow* pTabWin = static_cast< OQueryTableWindow* >( table.second.get() ); + if ( pTabWin && pTabWin->ExistsField( _rColumName, _rInfo ) ) + return pTabWin; } + return nullptr; } void InsertColumnRef(const OQueryDesignView* _pView, |