diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 17:53:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-28 17:56:18 +0100 |
commit | cead54b6e555fe907348943b4586e956771f6ad0 (patch) | |
tree | 509e515c969fa27449fd7f7674c252e742133aae /dbaccess/source/ui/dlg/adtabdlg.cxx | |
parent | ed874d2eab1a6b1146f411a5a83cc790d3226f10 (diff) |
Use vector::data
...in some places where it is obvious that it does not hurt that for an empty
vector the obtained pointer is not necessarily a nullptr.
Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
Diffstat (limited to 'dbaccess/source/ui/dlg/adtabdlg.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/adtabdlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/adtabdlg.cxx b/dbaccess/source/ui/dlg/adtabdlg.cxx index a6ca7ae16bd9..5e4cb63aa6f0 100644 --- a/dbaccess/source/ui/dlg/adtabdlg.cxx +++ b/dbaccess/source/ui/dlg/adtabdlg.cxx @@ -191,8 +191,7 @@ void TableListFacade::updateTableObjectList( bool _bAllowViews ) ::comphelper::UStringMixEqual aEqualFunctor; for(;pViewBegin != pViewEnd;++pViewBegin) aTables.erase(::std::remove_if(aTables.begin(),aTables.end(),::std::bind2nd(aEqualFunctor,*pViewBegin)),aTables.end()); - OUString* pTables = aTables.empty() ? 0 : &aTables[0]; - sTables = Sequence< OUString>(pTables, aTables.size()); + sTables = Sequence< OUString>(aTables.data(), aTables.size()); sViews = Sequence< OUString>(); } |