}
-TocIterator Toc::item(int depth, docstring const & str) const
+Toc::iterator Toc::item(int depth, docstring const & str)
{
if (empty())
return end();
- TocIterator it = begin();
- TocIterator itend = end();
- for (; it != itend; --it) {
+ iterator it = begin();
+ iterator itend = end();
+ for (; it != itend; ++it) {
if (it->depth() == depth && it->str() == str)
break;
}