summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-07-21 14:14:02 +0300
committerTor Lillqvist <tml@collabora.com>2017-07-21 14:29:18 +0300
commit4d1b35423537544a44d6265d985065caa340f956 (patch)
treea9c49ce379b8fc74b1bd36623f4bcbcbf6972f59 /sfx2
parentc7007aeb46e7598baab854b9bb0c35712bbe5518 (diff)
loplugin:oncevar
Change-Id: I6b9492b3abb25bc546d672626d438cbd407c8c0f
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/doctemplates.cxx2
1 files changed, 1 insertions, 1 deletions
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)
{