]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
* temporary fix for the crash of the pixmap cache on Mac with Qt 4.4.
[lyx.git] / src / TocBackend.cpp
index ebaff36b53df9aabe238bb42f0b7a97c46e3afc8..8b2015fd0a12cae9aec267bd4536843f293dcb6a 100644 (file)
@@ -203,12 +203,12 @@ TocIterator Toc::item(DocIterator const & dit) const
 }
 
 
-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();
+       iterator it = begin();
+       iterator itend = end();
        for (; it != itend; ++it) {
                if (it->depth() == depth && it->str() == str)
                        break;