]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.h
* is.at is const, is[] is a deep non-const copy
[lyx.git] / src / TocBackend.h
index 0ade8432808d3f7b4f30cc940340cda370328b42..7dc9ec8d499b5f68f50f8009740cac1542ec3635 100644 (file)
@@ -85,7 +85,7 @@ class TocBackend
 {
 public:
        ///
-       TocBackend(Buffer const * buffer = NULL) : buffer_(buffer) {}
+       TocBackend(Buffer const * buffer) : buffer_(buffer) {}
        ///
        void setBuffer(Buffer const * buffer) { buffer_ = buffer; }
        ///
@@ -95,11 +95,13 @@ public:
 
        ///
        TocList const & tocs() const { return tocs_; }
+       TocList & tocs() { return tocs_; }
 
        ///
        Toc const & toc(std::string const & type) const;
-       /// Return the first Toc Item before the cursor
+       Toc & toc(std::string const & type);
 
+       /// Return the first Toc Item before the cursor
        TocIterator item(
                std::string const & type, ///< Type of Toc.
                ParConstIterator const & ///< The cursor location in the document.