sfx2/source/doc/doctemplates.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d1b35423537544a44d6265d985065caa340f956
Author: Tor Lillqvist <t...@collabora.com>
Date:   Fri Jul 21 14:14:02 2017 +0300

    loplugin:oncevar
    
    Change-Id: I6b9492b3abb25bc546d672626d438cbd407c8c0f

diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 62232c9efbd1..8d2baa83d549 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -503,7 +503,7 @@ void SfxDocTplService_Impl::readFolderList()
 {
     SolarMutexGuard aGuard;
 
-    size_t nCount = std::min(SAL_N_ELEMENTS(TEMPLATE_SHORT_NAMES_ARY), 
SAL_N_ELEMENTS(TEMPLATE_LONG_NAMES_ARY));
+    constexpr size_t nCount = 
std::min(SAL_N_ELEMENTS(TEMPLATE_SHORT_NAMES_ARY), 
SAL_N_ELEMENTS(TEMPLATE_LONG_NAMES_ARY));
 
     for (size_t i = 0; i < nCount; ++i)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to