diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-17 00:13:19 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-17 00:13:19 -0500 |
commit | a36dcb29132d4f8a0fc740a7714aec34ed53b8ce (patch) | |
tree | e00f9936cd53f3375e82816e2eb5d3e349f3eb18 /sfx2 | |
parent | 3d361dbc2d69484657c42852dcfa426c00bc3175 (diff) |
use SAL_N_ELEMENTS macro
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdowniconaqua.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/appl/shutdowniconaqua.mm b/sfx2/source/appl/shutdowniconaqua.mm index 14f12c79b53b..a5bca0c3c601 100644 --- a/sfx2/source/appl/shutdowniconaqua.mm +++ b/sfx2/source/appl/shutdowniconaqua.mm @@ -36,6 +36,7 @@ #include "comphelper/sequenceashashmap.hxx" #include "vos/mutex.hxx" #include "sfx2/app.hxx" +#include <sal/macros.h> #include "app.hrc" #define USE_APP_SHORTCUTS #include "shutdownicon.hxx" @@ -454,7 +455,7 @@ void aqua_init_systray() } // insert the menu entries for launching the applications - for ( size_t i = 0; i < sizeof( aMenuItems ) / sizeof( aMenuItems[0] ); ++i ) + for ( size_t i = 0; i < SAL_N_ELEMENTS( aMenuItems ); ++i ) { if ( !aModuleOptions.IsModuleInstalled( aMenuItems[i].eModuleIdentifier ) ) // the complete application is not even installed |