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

Noel Grandin noel at peralex.com
Thu Apr 21 11:21:31 UTC 2016


 cui/source/dialogs/cuifmsearch.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ca771c7e27ddcc5406dbee781f72ad1d7e213b29
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Apr 21 13:20:34 2016 +0200

    fix windows build
    
    after my commit
    e1af7f0c438bc242e4562aa0286c99787b5ad544
    "clang-tidy modernize-loop-convert in c*"
    
    Change-Id: Icbc8c30186b0ea33933365951718dfad3fd7c4e2

diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx
index e7d30c6..77905dd 100644
--- a/cui/source/dialogs/cuifmsearch.cxx
+++ b/cui/source/dialogs/cuifmsearch.cxx
@@ -120,8 +120,10 @@ FmSearchDialog::FmSearchDialog(vcl::Window* pParent, const OUString& sInitialTex
     DBG_ASSERT(comphelper::string::getTokenCount(fmscInitial.strUsedFields, ';') == (sal_Int32)fmscInitial.arrFields.size(),
         "FmSearchDialog::FmSearchDialog : invalid data supplied by ContextSupplied !");
 #if (OSL_DEBUG_LEVEL > 1) || defined DBG_UTIL
-    for (Reference<XInterface> & arrField : fmscInitial.arrFields)
+    for (const Reference<XInterface> & arrField : fmscInitial.arrFields)
+    {
         DBG_ASSERT(arrField.is(), "FmSearchDialog::FmSearchDialog : invalid data supplied by ContextSupplier !");
+    }
 #endif // (OSL_DEBUG_LEVEL > 1) || DBG_UTIL
 
     for (   ::std::vector< OUString >::const_iterator context = _rContexts.begin();


More information about the Libreoffice-commits mailing list