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 | e22b34138f412b949f5451333a8c82218623820c (patch) | |
tree | f508385080e1c346bbdeaecf5493674737b5aec0 /svx | |
parent | d456da018b3030250b30cbc2b5433a2ac701f2e1 (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 32a58746ec..f311eed28e 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 ); } |