diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-12-03 13:59:12 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2010-12-03 13:59:12 +0000 |
commit | f8e081876fa321cbf6072472ef5b5ee0aa050260 (patch) | |
tree | d5ed7d15a5116d3aa23833fd8e8e2aa03889cd1d /chart2/source/tools/ConfigColorScheme.cxx | |
parent | e057b44e97769763c7284ac784081706c8d76b92 (diff) |
more Sal n elements
Diffstat (limited to 'chart2/source/tools/ConfigColorScheme.cxx')
-rw-r--r-- | chart2/source/tools/ConfigColorScheme.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx index d0d0d722b764..23fcd4fa9e72 100644 --- a/chart2/source/tools/ConfigColorScheme.cxx +++ b/chart2/source/tools/ConfigColorScheme.cxx @@ -34,6 +34,7 @@ #include "macros.hxx" #include <unotools/configitem.hxx> +#include <sal/macros.h> #include <set> @@ -175,7 +176,7 @@ void ConfigColorScheme::retrieveConfigColors() 0xff00ff, 0x00ffff, 0xffff00 }; - static const sal_Int32 nMaxDefaultColors = sizeof( nDefaultColors ) / sizeof( sal_Int32 ); + static const sal_Int32 nMaxDefaultColors = SAL_N_ELEMENTS( nDefaultColors ); return nDefaultColors[ nIndex % nMaxDefaultColors ]; } |