summaryrefslogtreecommitdiff
path: root/forms/source/runtime
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-15 18:15:35 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-15 18:15:35 +0100
commit394235bba1f7c474c9655f929f4fe27a550aba45 (patch)
tree266bd52b9f0b82dc5b21c4c7a9d829fb1ff87003 /forms/source/runtime
parent7d4ffef8b74cd9ac2959006bac8d5c582b313e61 (diff)
SAL_N_ELEMENTS changes for components
Diffstat (limited to 'forms/source/runtime')
-rw-r--r--forms/source/runtime/formoperations.cxx3
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 );
}