use SAL_N_ELEMENTS
Change-Id: I533ce52828ae08a6ab111bcbeaaa6b44c62a6ab9
This commit is contained in:
@@ -661,7 +661,7 @@ OUString SvxBorderLine::GetValueString( SfxMapUnit eSrcUnit,
|
||||
};
|
||||
OUString aStr = "(" + ::GetColorString( aColor ) + OUString(cpDelim);
|
||||
|
||||
if ( m_nStyle < sizeof(aStyleIds)/sizeof(*aStyleIds) )
|
||||
if ( m_nStyle < int(SAL_N_ELEMENTS(aStyleIds)) )
|
||||
{
|
||||
sal_uInt16 nResId = aStyleIds[m_nStyle];
|
||||
aStr += EE_RESSTR(nResId);
|
||||
|
Reference in New Issue
Block a user