From 9b04df1f7722f468cc6c065f0d738ecddcd44152 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 19 Oct 2010 17:01:58 +0100 Subject: [PATCH] fix bogus SAL_N_ELEMENTS usage --- basctl/source/basicide/doceventnotifier.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basctl/source/basicide/doceventnotifier.cxx b/basctl/source/basicide/doceventnotifier.cxx index 86cf38223a5b..e69f542c618e 100644 --- a/basctl/source/basicide/doceventnotifier.cxx +++ b/basctl/source/basicide/doceventnotifier.cxx @@ -167,7 +167,7 @@ namespace basctl { "OnModeChanged", &DocumentEventListener::onDocumentModeChanged } }; - for ( size_t i=0; SAL_N_ELEMENTS( aEvents ); ++i ) + for ( size_t i=0; i < SAL_N_ELEMENTS( aEvents ); ++i ) { if ( !_rEvent.EventName.equalsAscii( aEvents[i].pEventName ) ) continue;