summaryrefslogtreecommitdiff
path: root/forms/source/solar
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/solar')
-rw-r--r--forms/source/solar/control/navtoolbar.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx
index 747cf3379aef..7e5974971283 100644
--- a/forms/source/solar/control/navtoolbar.cxx
+++ b/forms/source/solar/control/navtoolbar.cxx
@@ -43,6 +43,7 @@
#include <vcl/fixed.hxx>
#include <memory>
+#include <sal/macros.h>
#define LID_RECORD_LABEL 1000
#define LID_RECORD_FILLER 1001
@@ -295,7 +296,7 @@ namespace frm
{ FormFeature::RemoveFilterAndSort, false, false },
};
- size_t nSupportedFeatures = sizeof( aSupportedFeatures ) / sizeof( aSupportedFeatures[0] );
+ size_t nSupportedFeatures = SAL_N_ELEMENTS( aSupportedFeatures );
FeatureDescription* pSupportedFeatures = aSupportedFeatures;
FeatureDescription* pSupportedFeaturesEnd = aSupportedFeatures + nSupportedFeatures;
for ( ; pSupportedFeatures < pSupportedFeaturesEnd; ++pSupportedFeatures )