summaryrefslogtreecommitdiff
path: root/svx/source/sdr/event
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-10-12 12:04:07 +0000
committerOliver Bolte <obo@openoffice.org>2006-10-12 12:04:07 +0000
commit432212fdce1298f1fe992553e5d096558a97f81f (patch)
tree86503f5cf5ed2e9c24f97ab3b324a11fc797eaff /svx/source/sdr/event
parentbff8fce7e450197a258d0d994bdc98913d58f542 (diff)
INTEGRATION: CWS sb59 (1.3.488); FILE MERGED
2006/08/28 12:57:58 sb 1.3.488.1: #i67487# Made code warning-free (wntmsci10).
Diffstat (limited to 'svx/source/sdr/event')
-rw-r--r--svx/source/sdr/event/eventhandler.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/svx/source/sdr/event/eventhandler.cxx b/svx/source/sdr/event/eventhandler.cxx
index d3ff7509fbf9..88f9a230e74b 100644
--- a/svx/source/sdr/event/eventhandler.cxx
+++ b/svx/source/sdr/event/eventhandler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: eventhandler.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 05:39:30 $
+ * last change: $Author: obo $ $Date: 2006-10-12 13:04:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -123,10 +123,11 @@ namespace sdr
// Trigger and consume the events
void EventHandler::ExecuteEvents()
{
- BaseEvent* pEvent;
-
- while(pEvent = GetEvent())
+ for(;;)
{
+ BaseEvent* pEvent = GetEvent();
+ if(pEvent == NULL)
+ break;
pEvent->ExecuteEvent();
delete pEvent;
}