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 | 2f66ff459bebbb8f181bc9e8a4e77685c874ff67 (patch) | |
tree | 6bb8faeb02ae5f1a4858e105d0133d56b4ab6c54 /sfx2 | |
parent | 4ecdedf95c891a7184d2281005fcd5585d6f91d7 (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 14f12c79b5..a5bca0c3c6 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 |