diff options
Diffstat (limited to 'cui/source/dialogs/commonlingui.cxx')
-rw-r--r-- | cui/source/dialogs/commonlingui.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/dialogs/commonlingui.cxx b/cui/source/dialogs/commonlingui.cxx index c1d5ae50aac6..9b23a1386963 100644 --- a/cui/source/dialogs/commonlingui.cxx +++ b/cui/source/dialogs/commonlingui.cxx @@ -33,6 +33,7 @@ #include <cuires.hrc> #include <dialmgr.hxx> #include <vcl/decoview.hxx> +#include <sal/macros.h> #include "hangulhanjadlg.hrc" @@ -253,7 +254,7 @@ void SvxCommonLinguisticControl::Enlarge( sal_Int32 _nX, sal_Int32 _nY ) { this, &aAuditBox, &aStatusText }; - for ( sal_uInt32 i = 0; i < sizeof( pResize ) / sizeof( pResize[0] ); ++i ) + for ( sal_uInt32 i = 0; i < SAL_N_ELEMENTS( pResize ); ++i ) { aSize = pResize[i]->GetSizePixel( ); pResize[i]->SetSizePixel( Size( aSize.Width() + _nX, aSize.Height() + _nY ) ); @@ -266,7 +267,7 @@ void SvxCommonLinguisticControl::Enlarge( sal_Int32 _nX, sal_Int32 _nY ) { &aStatusText, &aHelpBtn, &aCancelBtn }; - for ( sal_uInt32 i = 0; i < sizeof( pMoveDown ) / sizeof( pMoveDown[0] ); ++i ) + for ( sal_uInt32 i = 0; i < SAL_N_ELEMENTS( pMoveDown ); ++i ) { aPos = pMoveDown[i]->GetPosPixel(); aPos.Y() += _nY; @@ -280,7 +281,7 @@ void SvxCommonLinguisticControl::Enlarge( sal_Int32 _nX, sal_Int32 _nY ) { &aIgnoreBtn, &aIgnoreAllBtn, &aChangeBtn, &aChangeAllBtn, &aOptionsBtn, &aHelpBtn, &aCancelBtn }; - for ( sal_uInt32 i = 0; i < sizeof( pMoveRight ) / sizeof( pMoveRight[0] ); ++i ) + for ( sal_uInt32 i = 0; i < SAL_N_ELEMENTS( pMoveRight ); ++i ) { aPos = pMoveRight[i]->GetPosPixel(); aPos.X() += _nX; |