aboutsummaryrefslogtreecommitdiffhomepage
path: root/event.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-03 15:20:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-03 15:22:03 -0800
commit3ead99b0883c49d465a90a6746409003d7224190 (patch)
treefad0ab467226584b975328b305fded21b980239e /event.cpp
parent8c0803e3c5d9cb874f5dd69ee2727eb4be99bfac (diff)
Put fish on a diet. Tracked down the biggest memory hogs and fixed them. Total allocations down by a factor of 3 or so, live allocations a few KB.
Diffstat (limited to 'event.cpp')
-rw-r--r--event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.cpp b/event.cpp
index cf6e9e03..0f87bc39 100644
--- a/event.cpp
+++ b/event.cpp
@@ -136,7 +136,7 @@ static int event_match( const event_t *classv, const event_t *instance )
Create an identical copy of an event. Use deep copying, i.e. make
duplicates of any strings used as well.
*/
-static event_t *event_copy( event_t *event, int copy_arguments )
+static event_t *event_copy( const event_t *event, int copy_arguments )
{
event_t *e = new event_t(*event);
@@ -232,7 +232,7 @@ static void show_all_handlers(void) {
}
#endif
-void event_add_handler( event_t *event )
+void event_add_handler( const event_t *event )
{
event_t *e;