summaryrefslogtreecommitdiff
path: root/uui/source/passworddlg.cxx
diff options
context:
space:
mode:
authorKayo Hamid <revol.code@yahoo.com>2010-10-14 21:14:52 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-14 21:15:24 +0100
commitb7c82daa28526c566047e158ab2ace522fc442dc (patch)
treec71f33ee622add8de9013a170a7463ed564ad6e8 /uui/source/passworddlg.cxx
parent1b0c6da1c3bcc6a9c1412d221d029885f9998fa1 (diff)
Switch to use SAL_N_ELEMENTS macro, everywhere
Diffstat (limited to 'uui/source/passworddlg.cxx')
-rw-r--r--uui/source/passworddlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx
index 34d886ca2e26..bb81e612e086 100644
--- a/uui/source/passworddlg.cxx
+++ b/uui/source/passworddlg.cxx
@@ -103,7 +103,7 @@ PasswordDialog::PasswordDialog(
aFTPassword.SetPosSizePixel( aFTPassword.GetPosPixel(), aNewLabelSize );
Window* pControls[] = { &aEDPassword, &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();