From 8c6b84c2c5834ab877c3edd96fd243606cfefe39 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Jun 2017 10:23:07 +0200 Subject: loplugin:oncevar filter..forms Change-Id: I70a8ed6dbfe08b22dbf7b7b86e9518d73c5e393a Reviewed-on: https://gerrit.libreoffice.org/39154 Tested-by: Jenkins Reviewed-by: Noel Grandin --- forms/source/solar/control/navtoolbar.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'forms/source/solar') diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx index 169ceb3ff635..dd183941eb61 100644 --- a/forms/source/solar/control/navtoolbar.cxx +++ b/forms/source/solar/control/navtoolbar.cxx @@ -270,9 +270,8 @@ namespace frm { FormFeature::RemoveFilterAndSort, false, false }, }; - size_t nSupportedFeatures = SAL_N_ELEMENTS( aSupportedFeatures ); FeatureDescription* pSupportedFeatures = aSupportedFeatures; - FeatureDescription* pSupportedFeaturesEnd = aSupportedFeatures + nSupportedFeatures; + FeatureDescription* pSupportedFeaturesEnd = aSupportedFeatures + SAL_N_ELEMENTS( aSupportedFeatures ); for ( ; pSupportedFeatures < pSupportedFeaturesEnd; ++pSupportedFeatures ) { if ( pSupportedFeatures->nId ) -- cgit