diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-16 20:56:58 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-16 20:56:58 +0100 |
commit | 095a3decf54d42b1c24c151b6db7599c7d0393da (patch) | |
tree | a7e63620f5a6bb53ff12cb2a22b70c11e3843527 /hwpfilter/source/mapping.h | |
parent | Adding missing header for Rectangle. (diff) | |
download | core-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.h | 3 |
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++ ){ |