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

Caolán McNamara caolanm at redhat.com
Fri Jul 21 11:47:44 UTC 2017


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

New commits:
commit bde3cfd8b1fcb38e024c8bc27ca0c6d07c744fb3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jul 21 12:45:20 2017 +0100

    call to non-constexpre function
    
    Change-Id: I31f5a23e0f328273b8a165e58863b771853f3d3c

diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 8d2baa83d549..71402d8b86f4 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -503,8 +503,7 @@ void SfxDocTplService_Impl::readFolderList()
 {
     SolarMutexGuard aGuard;
 
-    constexpr size_t nCount = std::min(SAL_N_ELEMENTS(TEMPLATE_SHORT_NAMES_ARY), SAL_N_ELEMENTS(TEMPLATE_LONG_NAMES_ARY));
-
+    const 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)
     {
         NamePair_Impl* pPair = new NamePair_Impl;


More information about the Libreoffice-commits mailing list