]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTOC.h
Use const ref instead of passing by value.
[features.git] / src / insets / InsetTOC.h
index 183683628d40fc4dea929b6e4772ee72d11ec4f1..074ad535dbf6e8f4b6de193670af8d00f224eee7 100644 (file)
@@ -64,9 +64,9 @@ public:
 
 private:
        ///
-       void makeTOCWithDepth(XHTMLStream & xs, Toc toc, const OutputParams & op) const;
+       void makeTOCWithDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
-       void makeTOCNoDepth(XHTMLStream & xs, Toc toc, const OutputParams & op) const;
+       void makeTOCNoDepth(XHTMLStream & xs, Toc const & toc, const OutputParams & op) const;
        ///
        void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const;