Commit a5a079b7 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[DOC] fixed typos

parent de3cce09
......@@ -62,7 +62,7 @@ void WModuleInputConnector::connectSignals( boost::shared_ptr<WModuleConnector>
// connect dataChange signal with an internal handler to ensure we can add the "input" connector pointer, since the output
// connector does not set this information.
// NOTE: con will be an WModuleOutputConnector
// NOTE: con will be a WModuleOutputConnector
m_DataChangedConnection = con->subscribeSignal( DATA_CHANGED,
boost::bind( &WModuleInputConnector::notifyDataChange, this, _1, _2 )
);
......
......@@ -98,7 +98,7 @@ protected:
*/
virtual bool connectable( boost::shared_ptr<WModuleConnector> con )
{
if ( dynamic_cast<WModuleInputData<T>* >( con.get() ) ) // NOLINT - since we really need them here
if ( dynamic_cast< WModuleInputData< T >* >( con.get() ) ) // NOLINT - since we really need the dynamic cast here
{
// NOTE: the upper cast already checked the compatibility completely. WModuleOutputConnector::connectable does the
// same check again. But since we do not know what checks will be added to WModuleOutputConnector::connectable in the
......
......@@ -130,7 +130,7 @@ protected:
virtual void notifyDataChange( boost::shared_ptr< WModuleConnector > /*input*/,
boost::shared_ptr< WModuleConnector > output )
{
// just copy the data
// just copy the data and add one
data = *( boost::shared_dynamic_cast< WModuleOutputData< int > >( output )->getData() ) + 1;
// std::cout << "change to " << data << " in " << input->getCanonicalName() << " from " << output->getCanonicalName()
......@@ -185,7 +185,7 @@ public:
*/
void createModules( void )
{
// init 2 separate test modules
// init 3 separate test modules
m1 = boost::shared_ptr< WModuleImpl >( new WModuleImpl( "m1" ) );
m2 = boost::shared_ptr< WModuleImpl >( new WModuleImpl( "m2" ) );
m3 = boost::shared_ptr< WModuleImpl >( new WModuleImpl( "m3" ) );
......@@ -217,7 +217,7 @@ public:
// check whether there are NO connectors.
// The constructor should now create connectors since shared_ptr are needed -> init in constructor leads to exception
// (its enough to test one of them)
// (it is enough to test one of them)
TS_ASSERT( m1->m_InputConnectors.size() == 0 );
TS_ASSERT( m1->m_OutputConnectors.size() == 0 );
}
......@@ -296,7 +296,7 @@ public:
TS_ASSERT_THROWS_NOTHING( initConnections() );
// check that every connector has an connection count of 1
// check that every connector has a connection count of 1
TS_ASSERT( m1->m_Output->m_Connected.size() == 1 );
TS_ASSERT( m1->m_Input->m_Connected.size() == 1 );
TS_ASSERT( m2->m_Output->m_Connected.size() == 1 );
......@@ -413,7 +413,7 @@ public:
// try to get data from an unconnected connector
TS_ASSERT_THROWS( m3->m_Input->getData(), WModuleConnectorUnconnected );
// try to get uninitialized data -> should return an "NULL" Pointer
// try to get uninitialized data -> should return a "NULL" Pointer
TS_ASSERT( m2->m_Input->getData() == boost::shared_ptr< int >() );
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment