diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 23:59:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-08-29 23:59:56 +0100 |
commit | 716c0233cfa58d898012b23ec64fd7a598b8fe78 (patch) | |
tree | c25241c43dddfced8bf191bdf767dc9d2916e9fc /cui | |
parent | f59733d45f900bf3e1427f69d7172cde5d877399 (diff) |
use SAL_N_ELEMENTS
Change-Id: Ia55c8696657c459423d745e298630d549e4125df
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgenrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx index e8d031df704f..fdca005affb0 100644 --- a/cui/source/options/optgenrl.cxx +++ b/cui/source/options/optgenrl.cxx @@ -271,7 +271,7 @@ void SvxGeneralTabPage::CreateControls () )); Row& rRow = *vRows.back(); // fields in the row - static unsigned const nFieldCount = sizeof vFieldInfo / sizeof vFieldInfo[0]; + static unsigned const nFieldCount = SAL_N_ELEMENTS(vFieldInfo); // skipping other (invisible) rows while (iField != nFieldCount && vFieldInfo[iField].eRow != eRow) ++iField; |