From fef8b2637da5ec7580bbd3c279fa172dce045a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 27 Jan 2014 23:18:13 +0100 Subject: [PATCH] TextListener: TextChangedEvent can be const --- src/apps/haiku-depot/textview/TextListener.cpp | 2 +- src/apps/haiku-depot/textview/TextListener.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/haiku-depot/textview/TextListener.cpp b/src/apps/haiku-depot/textview/TextListener.cpp index 4819b5ff11..d6054b4c55 100644 --- a/src/apps/haiku-depot/textview/TextListener.cpp +++ b/src/apps/haiku-depot/textview/TextListener.cpp @@ -106,6 +106,6 @@ TextListener::TextChanging(TextChangingEvent& event) void -TextListener::TextChanged(TextChangedEvent& event) +TextListener::TextChanged(const TextChangedEvent& event) { } diff --git a/src/apps/haiku-depot/textview/TextListener.h b/src/apps/haiku-depot/textview/TextListener.h index a3f8993b40..5f8a41d929 100644 --- a/src/apps/haiku-depot/textview/TextListener.h +++ b/src/apps/haiku-depot/textview/TextListener.h @@ -64,8 +64,11 @@ public: virtual void TextChanging(TextChangingEvent& event); - virtual void TextChanged(TextChangedEvent& event); + virtual void TextChanged(const TextChangedEvent& event); }; +typedef BReference TextListenerRef; + + #endif // TEXT_LISTENER_H