diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-15 18:15:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-15 18:15:35 +0100 |
commit | 394235bba1f7c474c9655f929f4fe27a550aba45 (patch) | |
tree | 266bd52b9f0b82dc5b21c4c7a9d829fb1ff87003 /basctl | |
parent | 7d4ffef8b74cd9ac2959006bac8d5c582b313e61 (diff) |
SAL_N_ELEMENTS changes for components
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/doceventnotifier.cxx | 3 | ||||
-rw-r--r-- | basctl/source/dlged/propbrw.cxx | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/doceventnotifier.cxx b/basctl/source/basicide/doceventnotifier.cxx index 038032a76fd3..86cf38223a5b 100644 --- a/basctl/source/basicide/doceventnotifier.cxx +++ b/basctl/source/basicide/doceventnotifier.cxx @@ -44,6 +44,7 @@ #include <comphelper/processfactory.hxx> #include <vos/mutex.hxx> +#include <sal/macros.h> #include <cppuhelper/compbase1.hxx> #include <cppuhelper/basemutex.hxx> @@ -166,7 +167,7 @@ namespace basctl { "OnModeChanged", &DocumentEventListener::onDocumentModeChanged } }; - for ( size_t i=0; i < sizeof( aEvents ) / sizeof( aEvents[0] ); ++i ) + for ( size_t i=0; SAL_N_ELEMENTS( aEvents ); ++i ) { if ( !_rEvent.EventName.equalsAscii( aEvents[i].pEventName ) ) continue; diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx index d12b4d9b67e1..d210482a8ef5 100644 --- a/basctl/source/dlged/propbrw.cxx +++ b/basctl/source/dlged/propbrw.cxx @@ -29,7 +29,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_basctl.hxx" - +#include <sal/macros.h> #include "propbrw.hxx" #include "dlgedobj.hxx" @@ -204,8 +204,7 @@ void PropBrw::ImplReCreateController() ::cppu::ContextEntry_Init( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContextDocument" ) ), makeAny( m_xContextDocument ) ) }; Reference< XComponentContext > xInspectorContext( - ::cppu::createComponentContext( aHandlerContextInfo, sizeof( aHandlerContextInfo ) / sizeof( aHandlerContextInfo[0] ), - xOwnContext ) ); + ::cppu::createComponentContext( aHandlerContextInfo, SAL_N_ELEMENTS( aHandlerContextInfo ), xOwnContext ) ); // create a property browser controller Reference< XMultiComponentFactory > xFactory( xInspectorContext->getServiceManager(), UNO_QUERY_THROW ); |