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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu May 21 07:18:29 UTC 2020


 extensions/source/update/check/updatehdl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d618441188dddc3c35aae733aa003b48389c6af7
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu May 21 09:16:10 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 21 09:16:10 2020 +0200

    loplugin:sequenceloop
    
    Change-Id: Ib785e6c581785fc4a477be38788a6544032b6ff0

diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx
index 60a9b441ec91..a7a8c295beed 100644
--- a/extensions/source/update/check/updatehdl.cxx
+++ b/extensions/source/update/check/updatehdl.cxx
@@ -881,7 +881,7 @@ bool UpdateHandler::showWarning( const OUString &rWarningText,
         {
             uno::Sequence< uno::Reference< awt::XWindow > > xChildren = xMsgBoxCtrls->getWindows();
 
-            for ( uno::Reference< awt::XWindow > const & child : xChildren )
+            for ( uno::Reference< awt::XWindow > const & child : std::as_const(xChildren) )
             {
                 uno::Reference< awt::XVclWindowPeer > xMsgBoxCtrl( child, uno::UNO_QUERY );
                 if ( xMsgBoxCtrl.is() )


More information about the Libreoffice-commits mailing list