mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Pass big parameters by address
Spotted by coverity.
This commit is contained in:
parent
f5fe3c17be
commit
72af7f340c
@ -258,7 +258,7 @@ void GuiCitation::updateControls(BiblioInfo const & bi)
|
||||
}
|
||||
|
||||
|
||||
void GuiCitation::updateFormatting(CitationStyle currentStyle)
|
||||
void GuiCitation::updateFormatting(CitationStyle const & currentStyle)
|
||||
{
|
||||
BufferParams const bp = documentBuffer().params();
|
||||
bool const force = currentStyle.forceUpperCase;
|
||||
|
@ -105,7 +105,7 @@ private:
|
||||
/// set the styles combo
|
||||
void updateStyles(BiblioInfo const & bi);
|
||||
/// set the formatting widgets
|
||||
void updateFormatting(CitationStyle currentStyle);
|
||||
void updateFormatting(CitationStyle const & currentStyle);
|
||||
///
|
||||
void updateControls(BiblioInfo const & bi);
|
||||
/// Set the appropriate hinting text on the filter bar
|
||||
|
@ -78,7 +78,7 @@ bool Context::empty = true;
|
||||
Context::Context(bool need_layout_,
|
||||
TeX2LyXDocClass const & textclass_,
|
||||
Layout const * layout_, Layout const * parent_layout_,
|
||||
TeXFont font_)
|
||||
TeXFont const & font_)
|
||||
: need_layout(need_layout_),
|
||||
need_end_layout(false), need_end_deeper(false),
|
||||
has_item(false), deeper_paragraph(false),
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
TeX2LyXDocClass const & textclass_,
|
||||
Layout const * layout_ = 0,
|
||||
Layout const * parent_layout_= 0,
|
||||
TeXFont font_ = TeXFont());
|
||||
TeXFont const & font_ = normalfont);
|
||||
~Context();
|
||||
|
||||
/// Output a \\begin_layout if requested
|
||||
|
Loading…
Reference in New Issue
Block a user