summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2012-12-04 23:29:30 +0100
committerManuel Traut <manut@mecka.net>2012-12-04 23:29:30 +0100
commit1d926aa9941451ab9ff684e63ce8a8a7eab26c72 (patch)
tree9e47e3007fd811543db8ee1a7a12ed0804c36a57
parentef1082b5f865ad720bdb4e2ecf730edce4168f21 (diff)
simple_dev: use const var in execute functions
- needed to match definition of base clase created by IDL - otherwise the execute function will not be found by CORBA Signed-off-by: Manuel Traut <manut@mecka.net>
-rw-r--r--devices/simple_dev/simple_dev.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/devices/simple_dev/simple_dev.cpp b/devices/simple_dev/simple_dev.cpp
index 7f32eb2..0c99ae0 100644
--- a/devices/simple_dev/simple_dev.cpp
+++ b/devices/simple_dev/simple_dev.cpp
@@ -20,7 +20,7 @@ class My_device : public Distrio_Device_i {
_name = ::CORBA::string_dup (dev_name.c_str ());
return distrio_success ();
}
- ::Distrio::Error *execute (::Distrio::Dev_function &func) {
+ ::Distrio::Error *execute (const ::Distrio::Dev_function & func) {
switch (func.id) {
case ::Distrio::DEV_START:
std::cout << "start simple_dev" << std::endl;
@@ -81,7 +81,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
dev->huhu_pin->set ();
sleep (1);
dev->huhu_pin->reset ();
-
/*
try {
dev->huhu_pin->register_callback ( (Distrio::Device_ptr) dev,