[dss-commits] r8818 - dss/trunk/core/sim
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Mon Oct 5 16:49:44 CEST 2009
Author: pstaehlin
Date: 2009-10-05 16:49:44 +0200 (Mon, 05 Oct 2009)
New Revision: 8818
Modified:
dss/trunk/core/sim/dsid_js.cpp
dss/trunk/core/sim/dsid_plugin.cpp
Log:
Using the right function signature helps to override virtual functions
Modified: dss/trunk/core/sim/dsid_js.cpp
===================================================================
--- dss/trunk/core/sim/dsid_js.cpp 2009-10-05 13:52:52 UTC (rev 8817)
+++ dss/trunk/core/sim/dsid_js.cpp 2009-10-05 14:49:44 UTC (rev 8818)
@@ -239,7 +239,7 @@
return "";
} // getConfigParameter
- virtual uint8_t dsLinkSend(uint8_t _value, uint8_t _flags, bool _handled) {
+ virtual uint8_t dsLinkSend(uint8_t _value, uint8_t _flags, bool& _handled) {
if(m_pSelf != NULL) {
try {
ScriptFunctionParameterList param(*m_pContext);
Modified: dss/trunk/core/sim/dsid_plugin.cpp
===================================================================
--- dss/trunk/core/sim/dsid_plugin.cpp 2009-10-05 13:52:52 UTC (rev 8817)
+++ dss/trunk/core/sim/dsid_plugin.cpp 2009-10-05 14:49:44 UTC (rev 8818)
@@ -153,7 +153,7 @@
return "";
} // getConfigParameter
- virtual uint8_t dsLinkSend(uint8_t _value, uint8_t _flags, bool _handled) {
+ virtual uint8_t dsLinkSend(uint8_t _value, uint8_t _flags, bool& _handled) {
if(m_Interface->udi_send != NULL) {
_handled = true;
return (*m_Interface->udi_send)(m_Handle, _value, _flags);
More information about the dss-commits
mailing list