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