mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-29 09:05:41 +00:00
fix multiple default constructors
This commit is contained in:
parent
5c15dac16f
commit
3fefff36c2
|
@ -92,10 +92,13 @@ namespace Util
|
||||||
private:
|
private:
|
||||||
const_ptr_t m_node;
|
const_ptr_t m_node;
|
||||||
public:
|
public:
|
||||||
inline const_iterator(const_ptr_t node = const_ptr_t())
|
inline const_iterator()
|
||||||
|
: m_node(const_ptr_t())
|
||||||
|
{}
|
||||||
|
inline const_iterator(const_ptr_t node)
|
||||||
: m_node(node)
|
: m_node(node)
|
||||||
{}
|
{}
|
||||||
inline const_iterator(ptr_t node = ptr_t())
|
inline const_iterator(ptr_t node)
|
||||||
: m_node(std::const_pointer_cast<const Node>(node))
|
: m_node(std::const_pointer_cast<const Node>(node))
|
||||||
{}
|
{}
|
||||||
inline const_iterator(const const_iterator &it)
|
inline const_iterator(const const_iterator &it)
|
||||||
|
@ -113,7 +116,7 @@ namespace Util
|
||||||
inline const_iterator operator++(int)
|
inline const_iterator operator++(int)
|
||||||
{
|
{
|
||||||
// Postfix increment
|
// Postfix increment
|
||||||
iterator current(*this);
|
//iterator current(*this); //unreferenced local variable
|
||||||
m_node = m_node->m_next_sibling;
|
m_node = m_node->m_next_sibling;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue