diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-15 18:15:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-15 18:15:35 +0100 |
commit | 394235bba1f7c474c9655f929f4fe27a550aba45 (patch) | |
tree | 266bd52b9f0b82dc5b21c4c7a9d829fb1ff87003 /forms/source/runtime | |
parent | fix fdo#30856 remove VBAForm property and associated geometry hack (diff) | |
download | core-394235bba1f7c474c9655f929f4fe27a550aba45.tar.gz core-394235bba1f7c474c9655f929f4fe27a550aba45.zip |
SAL_N_ELEMENTS changes for components
Diffstat (limited to 'forms/source/runtime')
-rw-r--r-- | forms/source/runtime/formoperations.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index c6c700acdc1b..b1d7e01f837b 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -69,6 +69,7 @@ #include <comphelper/namedvaluecollection.hxx> #include <cppuhelper/exc_hlp.hxx> #include <vos/mutex.hxx> +#include <sal/macros.h> //-------------------------------------------------------------------------- extern "C" void SAL_CALL createRegistryInfo_FormOperations() @@ -1124,7 +1125,7 @@ namespace frm FormFeature::SaveRecordChanges, FormFeature::UndoRecordChanges }; - size_t nFeatureCount = sizeof( pModifyDependentFeatures ) / sizeof( pModifyDependentFeatures[ 0 ] ); + size_t nFeatureCount = SAL_N_ELEMENTS( pModifyDependentFeatures ); s_aModifyDependentFeatures = Sequence< sal_Int16 >( pModifyDependentFeatures, nFeatureCount ); } |