mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
Pass XHTMLStream by reference. Problem found by coverity.
The previous code worked because we are writing to the stream, and the actual odocstream is a member by reference of XHTMLStream.
This commit is contained in:
parent
5f20d05b1b
commit
7a0f7b7046
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user