Skip to content

Commit

Permalink
minor clean in Element.cpp
Browse files Browse the repository at this point in the history
issue #27
  • Loading branch information
Valentin Noel committed Nov 14, 2013
1 parent 17048ee commit 6ef00e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/BasicElement/src/BasicElement/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

#include <iostream>

namespace sr = spec_reader;

namespace basic_element
{

Element::Element( const std::shared_ptr< sr::SpecNode > node,
Element::Element( const std::shared_ptr< spec_reader::SpecNode > node,
const std::shared_ptr< Element > previous,
const std::shared_ptr< Element > parent )
: _parent ( parent )
Expand Down Expand Up @@ -92,7 +90,7 @@ std::shared_ptr< spec_reader::SpecNode > Element::next( )
return _specNode;
}

std::shared_ptr< sr::SpecNode > nextNode = _specNode->next();
std::shared_ptr< spec_reader::SpecNode > nextNode = _specNode->next();

// Last Element: if their is no more SpecNode after and parent exists, go to the node after the parent
if( nextNode == nullptr && _parent.use_count() != 0 )
Expand Down

0 comments on commit 6ef00e1

Please sign in to comment.