summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-03-07 15:27:05 +0100
committerDavid Tardon <dtardon@redhat.com>2013-03-18 12:29:35 +0100
commit327a649b48fa54f7758a1a86d0fa324cfa71bc77 (patch)
tree29a7169f38421cebcc9cebb03658aa2ec65c20a4 /editeng
parentd352006d1c746e8d80e210de10ff6ed4476dd94d (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/itemtype.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/itemtype.cxx b/editeng/source/items/itemtype.cxx
index daaba33f2273..58506af921e6 100644
--- a/editeng/source/items/itemtype.cxx
+++ b/editeng/source/items/itemtype.cxx
@@ -149,13 +149,13 @@ XubString GetColorString( const Color& rCol )
COL_LIGHTGRAY, COL_LIGHTBLUE, COL_LIGHTGREEN, COL_LIGHTCYAN,
COL_LIGHTRED, COL_LIGHTMAGENTA, COL_YELLOW, COL_WHITE };
- while ( nColor < sizeof(aColAry)/sizeof(ColorData) &&
+ while ( nColor < SAL_N_ELEMENTS(aColAry) &&
aColAry[nColor] != nColData )
{
nColor += 1;
}
- if ( nColor < sizeof(aColAry)/sizeof(ColorData) )
+ if ( nColor < SAL_N_ELEMENTS(aColAry) )
sStr = EE_RESSTR( RID_SVXITEMS_COLOR_BEGIN + nColor + 1 );
if ( sStr.isEmpty() )