Pass big parameters by address

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2017-03-24 15:06:13 +01:00
parent f5fe3c17be
commit 72af7f340c
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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),

View File

@ -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