[Libreoffice-commits] core.git: dbaccess/source

Takeshi Abe tabe at fixedpoint.jp
Fri Jun 26 00:21:24 PDT 2015


 dbaccess/source/ui/control/tabletree.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 63384060ec6610ef08af57b981d028c8a177a028
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Fri Jun 26 16:18:55 2015 +0900

    no need to capture _rTables
    
    Change-Id: I78b4051ffdb625481b238cc3a5313aa4d086b87e

diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx
index feb00aa..61db99b 100644
--- a/dbaccess/source/ui/control/tabletree.cxx
+++ b/dbaccess/source/ui/control/tabletree.cxx
@@ -262,10 +262,10 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn
         {
             OUString sRootEntryText;
             if ( ::std::none_of(_rTables.begin(),_rTables.end(),
-                                [&_rTables] (TNames::value_type name) { return !name.second; }) )
+                                [] (TNames::value_type name) { return !name.second; }) )
                 sRootEntryText  = ModuleRes(STR_ALL_TABLES);
             else if ( ::std::none_of(_rTables.begin(),_rTables.end(),
-                                     [&_rTables] (TNames::value_type name) { return name.second; }) )
+                                     [] (TNames::value_type name) { return name.second; }) )
                 sRootEntryText  = ModuleRes(STR_ALL_VIEWS);
             else
                 sRootEntryText  = ModuleRes(STR_ALL_TABLES_AND_VIEWS);


More information about the Libreoffice-commits mailing list