]> git.lyx.org Git - lyx.git/commitdiff
Pass XHTMLStream by reference. Problem found by coverity.
authorRichard Heck <rgheck@lyx.org>
Tue, 12 May 2015 14:11:50 +0000 (10:11 -0400)
committerRichard Heck <rgheck@lyx.org>
Tue, 12 May 2015 14:13:04 +0000 (10:13 -0400)
The previous code worked because we are writing to the stream, and
the actual odocstream is a member by reference of XHTMLStream.

src/insets/InsetTOC.cpp
src/insets/InsetTOC.h

index fc1f42bcae86ab8c3cb0d41e136d1e62bea65b48..11662ce9eb28b18546c6b32fbc0861e1bb012258 100644 (file)
@@ -148,7 +148,7 @@ void InsetTOC::makeTOCEntry(XHTMLStream & xs,
 }
 
 
-void InsetTOC::makeTOCWithDepth(XHTMLStream xs, 
+void InsetTOC::makeTOCWithDepth(XHTMLStream xs, 
                Toc toc, OutputParams const & op) const
 {
        Toc::const_iterator it = toc.begin();
@@ -206,7 +206,7 @@ void InsetTOC::makeTOCWithDepth(XHTMLStream xs,
 }
 
 
-void InsetTOC::makeTOCNoDepth(XHTMLStream xs, 
+void InsetTOC::makeTOCNoDepth(XHTMLStream xs, 
                Toc toc, const OutputParams & op) const
 {
        Toc::const_iterator it = toc.begin();
index ead482b2e839870ec93ed3886d12eb528669f517..183683628d40fc4dea929b6e4772ee72d11ec4f1 100644 (file)
@@ -64,9 +64,9 @@ public:
 
 private:
        ///
-       void makeTOCWithDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
+       void makeTOCWithDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
        ///
-       void makeTOCNoDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
+       void makeTOCNoDepth(XHTMLStream xs, Toc toc, const OutputParams & op) const;
        ///
        void makeTOCEntry(XHTMLStream & xs, Paragraph const & par, OutputParams const & op) const;