Commit 9cfda069 authored by Pavel Vainerman's avatar Pavel Vainerman

(UniXML): minor fixes

parent 892cd666
......@@ -74,13 +74,13 @@ namespace uniset
// Перейти к следующему узлу
UniXML_iterator& operator+(int) noexcept;
UniXML_iterator& operator++(int) noexcept;
UniXML_iterator operator++(int) noexcept;
UniXML_iterator& operator+=(int) noexcept;
UniXML_iterator& operator++() noexcept;
// Перейти к предыдущему узлу
UniXML_iterator& operator-(int) noexcept;
UniXML_iterator& operator--(int) noexcept;
UniXML_iterator operator--(int) noexcept;
UniXML_iterator& operator--() noexcept;
UniXML_iterator& operator-=(int) noexcept;
......
......@@ -648,9 +648,11 @@ UniXML_iterator& UniXML_iterator::operator++() noexcept
return (*this) + 1;
}
// -------------------------------------------------------------------------
UniXML_iterator& UniXML_iterator::operator++(int) noexcept
UniXML_iterator UniXML_iterator::operator++(int) noexcept
{
return (*this) + 1;
UniXML_iterator temp(*this);
(*this) = (*this)+1;
return temp;
}
// -------------------------------------------------------------------------
UniXML_iterator& UniXML_iterator::operator+=(int s) noexcept
......@@ -678,9 +680,11 @@ UniXML_iterator& UniXML_iterator::operator+(int step) noexcept
return *this;
}
// -------------------------------------------------------------------------
UniXML_iterator& UniXML_iterator::operator--(int) noexcept
UniXML_iterator UniXML_iterator::operator--(int) noexcept
{
return (*this) - 1;
UniXML_iterator temp(*this);
(*this) = (*this)-1;
return temp;
}
UniXML_iterator& UniXML_iterator::operator--() noexcept
......
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