[Libreoffice-commits] core.git: editeng/source

Caolán McNamara caolanm at redhat.com
Mon Mar 31 08:33:57 PDT 2014


 editeng/source/items/borderline.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ddac6b1f305ff0c23fc49b50cd90738c7029d555
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 31 16:33:02 2014 +0100

    use SAL_N_ELEMENTS
    
    Change-Id: I533ce52828ae08a6ab111bcbeaaa6b44c62a6ab9

diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index a2a77d1..4bea25c 100644
--- a/editeng/source/items/borderline.cxx
+++ b/editeng/source/items/borderline.cxx
@@ -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);


More information about the Libreoffice-commits mailing list