[Rock-dev] [rock] #148: typos in iodrivers_base
rock
noreply at opendfki.de
Wed Apr 18 16:02:30 CEST 2012
#148: typos in iodrivers_base
----------------------+-----------------------------------
Reporter: renken@… | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: normal | Milestone:
Component: base | Keywords:
----------------------+-----------------------------------
I stumbled over two possible typos in iodrivers_base and orogen-
iodrivers_base:
iodrivers_base:
{{{
diff --git a/src/IOListener.cpp b/src/IOListener.cpp
index a3b6af9..a7da737 100644
--- a/src/IOListener.cpp
+++ b/src/IOListener.cpp
@@ -26,7 +26,7 @@ void BufferListener::writeData(uint8_t const* data,
size_t size)
*/
void BufferListener::readData(uint8_t const* data, size_t size)
{
- m_readBuffer.insert(m_writeBuffer.end(), data, data + size);
+ m_readBuffer.insert(m_readBuffer.end(), data, data + size);
}
}}}
orogen-iodrivers_base:
{{{
diff --git a/tasks/Task.cpp b/tasks/Task.cpp
index 70f16bc..89ce199 100644
--- a/tasks/Task.cpp
+++ b/tasks/Task.cpp
@@ -124,7 +124,7 @@ void Task::updateHook()
if (fd_activity)
{
if (fd_activity->hasError())
- return exception(IO_ERROR);
+ throw exception(IO_ERROR);
}
}
}}}
--
Ticket URL: <http://rock.opendfki.de/ticket/148>
rock <http://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list