summaryrefslogtreecommitdiffstats
path: root/hwpfilter/source/mapping.h
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-16 20:56:58 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-16 20:56:58 +0100
commit095a3decf54d42b1c24c151b6db7599c7d0393da (patch)
treea7e63620f5a6bb53ff12cb2a22b70c11e3843527 /hwpfilter/source/mapping.h
parentAdding missing header for Rectangle. (diff)
downloadcore-095a3decf54d42b1c24c151b6db7599c7d0393da.tar.gz
core-095a3decf54d42b1c24c151b6db7599c7d0393da.zip
some patches that replace sizeof(a)/sizeof(a[0]) with SAL_N_ELEMENTS(a)
Diffstat (limited to 'hwpfilter/source/mapping.h')
-rw-r--r--hwpfilter/source/mapping.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwpfilter/source/mapping.h b/hwpfilter/source/mapping.h
index 7c7ceb086bf3..bf445ef6e52f 100644
--- a/hwpfilter/source/mapping.h
+++ b/hwpfilter/source/mapping.h
@@ -30,6 +30,7 @@
#include <string.h>
#include <stdio.h>
+#include <sal/macros.h>
typedef unsigned short hchar;
@@ -369,7 +370,7 @@ const struct FormulaEntry FormulaMapTab[] = {
#ifndef DEBUG
hchar *getMathMLEntity(const char *tex, hchar *buf)
{
- static int tabSize = sizeof( FormulaMapTab ) / sizeof( FormulaMapTab[0] );
+ static int tabSize = SAL_N_ELEMENTS( FormulaMapTab );
int i, len;
for( i = 0 ; i < tabSize ; i++ ){