loplugin:oncevar

Change-Id: I6b9492b3abb25bc546d672626d438cbd407c8c0f
This commit is contained in:
Tor Lillqvist 2017-07-21 14:14:02 +03:00
parent c7007aeb46
commit 4d1b354235

View file

@ -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)
{