X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphParameters.cpp;h=72b2286b1284588385a5adaa924fa863dbae2f14;hb=1cbac6fcb40d6e0803198624c047769adec2fe09;hp=6ef9224f2d885962f912de4c4707712de2aafa5d;hpb=196d9caeb0b9f74d02750f774de1ca63a483803f;p=lyx.git diff --git a/src/ParagraphParameters.cpp b/src/ParagraphParameters.cpp index 6ef9224f2d..72b2286b12 100644 --- a/src/ParagraphParameters.cpp +++ b/src/ParagraphParameters.cpp @@ -168,7 +168,7 @@ void ParagraphParameters::leftIndent(Length const & li) } -void ParagraphParameters::read(string str, bool merge) +void ParagraphParameters::read(string const & str, bool merge) { istringstream is(str); Lexer lex; @@ -244,14 +244,14 @@ void ParagraphParameters::read(Lexer & lex, bool merge) void ParagraphParameters::apply( - ParagraphParameters const & p, Layout const & layout) + ParagraphParameters const & params, Layout const & layout) { - spacing(p.spacing()); + spacing(params.spacing()); // does the layout allow the new alignment? - if (p.align() & layout.alignpossible) - align(p.align()); - labelWidthString(p.labelWidthString()); - noindent(p.noindent()); + if (params.align() & layout.alignpossible) + align(params.align()); + labelWidthString(params.labelWidthString()); + noindent(params.noindent()); }