]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphParameters.cpp
Fix bug #12772
[lyx.git] / src / ParagraphParameters.cpp
index 90c8705e898d831d4b09feb34f8c7335a3c13410..72b2286b1284588385a5adaa924fa863dbae2f14 100644 (file)
 
 #include "ParagraphParameters.h"
 
-#include "Buffer.h"
-#include "support/gettext.h"
 #include "Layout.h"
 #include "Lexer.h"
-#include "Text.h"
 #include "Paragraph.h"
 
+#include "support/debug.h"
+#include "support/docstring.h"
 #include "support/lstrings.h"
 
 #include <sstream>
@@ -169,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;
@@ -245,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());
 }