>From 5acadd20d3393c9c4c9140f168a31d82611bac2f Mon Sep 17 00:00:00 2001 From: Heikki Tauriainen Date: Sat, 19 Oct 2013 10:01:06 +0300 Subject: [PATCH 2/5] Issue 3581: Allow overriding Translator::{connect_to,disconnect_from}_context This is needed to make it easier to implement a custom translator that will listen to SetProperty events. --- lily/include/translator.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lily/include/translator.hh b/lily/include/translator.hh index 41e2d97..be6781e 100644 --- a/lily/include/translator.hh +++ b/lily/include/translator.hh @@ -136,9 +136,8 @@ public: virtual void initialize (); virtual void finalize (); - /* should maybe be virtual */ - void connect_to_context (Context *c); - void disconnect_from_context (Context *c); + virtual void connect_to_context (Context *c); + virtual void disconnect_from_context (Context *c); void stop_translation_timestep (); void start_translation_timestep (); -- 1.8.4.rc3