diff options
author | David Tardon <dtardon@redhat.com> | 2011-01-10 09:53:58 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-01-10 09:53:58 +0100 |
commit | 7cc856e2b13c6d6e7bbcc7bfd7dcf7d0016fb5d8 (patch) | |
tree | 5e6201170796f3c37a3cec2244553f6ffdf601ba /svx | |
parent | 83d152fcccfc94b2eaf8132d247ff735465f7031 (diff) |
use SAL_N_ELEMENTS
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/stbctrls/zoomctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx index d9bd0c4e2e7d..3c269e0f2c7f 100644 --- a/svx/source/stbctrls/zoomctrl.cxx +++ b/svx/source/stbctrls/zoomctrl.cxx @@ -79,7 +79,7 @@ ZoomPopup_Impl::ZoomPopup_Impl( USHORT nZ, USHORT nValueSet ) SVX_ZOOM_ENABLE_PAGEWIDTH, ZOOM_PAGE_WIDTH }; - for ( USHORT nPos = 0; nPos < sizeof(aTable) / sizeof(USHORT); nPos += 2 ) + for ( USHORT nPos = 0; nPos < SAL_N_ELEMENTS(aTable); nPos += 2 ) if ( ( aTable[nPos] != ( aTable[nPos] & nValueSet ) ) ) EnableItem( aTable[nPos+1], FALSE ); } |