summaryrefslogtreecommitdiff
path: root/forms/source/richtext/richtextvclcontrol.cxx
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-15 18:15:35 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-15 18:15:35 +0100
commit394235bba1f7c474c9655f929f4fe27a550aba45 (patch)
tree266bd52b9f0b82dc5b21c4c7a9d829fb1ff87003 /forms/source/richtext/richtextvclcontrol.cxx
parent7d4ffef8b74cd9ac2959006bac8d5c582b313e61 (diff)
SAL_N_ELEMENTS changes for components
Diffstat (limited to 'forms/source/richtext/richtextvclcontrol.cxx')
-rw-r--r--forms/source/richtext/richtextvclcontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx
index 6dea7285ea86..53e7d9091f80 100644
--- a/forms/source/richtext/richtextvclcontrol.cxx
+++ b/forms/source/richtext/richtextvclcontrol.cxx
@@ -262,7 +262,7 @@ namespace frm
::sfx2::FileDialogHelper aFP( bLoad ? com::sun::star::ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE : com::sun::star::ui::dialogs::TemplateDescription::FILESAVE_AUTOEXTENSION, 0, this );
- for ( size_t i = 0; i < sizeof( aExportFormats ) / sizeof( aExportFormats[ 0 ] ); ++i )
+ for ( size_t i = 0; i < SAL_N_ELEMENTS( aExportFormats ); ++i )
{
aFP.AddFilter(
String::CreateFromAscii( aExportFormats[i].pDescription ),
@@ -279,7 +279,7 @@ namespace frm
{
EETextFormat eFormat = EE_FORMAT_XML;
String sFilter = aFP.GetCurrentFilter();
- for ( size_t i = 0; i < sizeof( aExportFormats ) / sizeof( aExportFormats[ 0 ] ); ++i )
+ for ( size_t i = 0; i < SAL_N_ELEMENTS( aExportFormats ); ++i )
{
if ( sFilter.EqualsAscii( aExportFormats[i].pDescription ) )
{