diff options
Diffstat (limited to 'uui/source/passcrtdlg.cxx')
-rw-r--r-- | uui/source/passcrtdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uui/source/passcrtdlg.cxx b/uui/source/passcrtdlg.cxx index 843d3bf15263..77b14f3bf38f 100644 --- a/uui/source/passcrtdlg.cxx +++ b/uui/source/passcrtdlg.cxx @@ -115,7 +115,7 @@ PasswordCreateDialog::PasswordCreateDialog( Window* _pParent, ResMgr * pResMgr, aFTWarning.SetPosSizePixel( aFTWarning.GetPosPixel(), aNewWarningSize ); Window* pControls[] = { &aFixedLine1, &aOKBtn, &aCancelBtn, &aHelpBtn }; - const sal_Int32 nCCount = sizeof( pControls ) / sizeof( pControls[0] ); + const sal_Int32 nCCount = SAL_N_ELEMENTS( pControls ); for ( int i = 0; i < nCCount; ++i ) { Point aNewPos =(*pControls[i]).GetPosPixel(); |