[Libreoffice-commits] .: svx/source

David Tardon dtardon at kemper.freedesktop.org
Mon Jan 10 00:54:18 PST 2011


 svx/source/stbctrls/zoomctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e22b34138f412b949f5451333a8c82218623820c
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Jan 10 09:53:58 2011 +0100

    use SAL_N_ELEMENTS

diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index 32a5874..f311eed 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 );
 }


More information about the Libreoffice-commits mailing list