diff --git a/src/paragraph.C b/src/paragraph.C index 7e8470af8f..866d42471f 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -726,10 +726,8 @@ void Paragraph::makeSameLayout(Paragraph const * par) int Paragraph::stripLeadingSpaces() { - if (layout()->free_spacing || - isFreeSpacing()) { + if (layout()->free_spacing || isFreeSpacing()) return 0; - } int i = 0; while (!empty() && (isNewline(0) || isLineSeparator(0))) { @@ -786,15 +784,13 @@ Paragraph::depth_type Paragraph::getDepth() const Paragraph::depth_type Paragraph::getMaxDepthAfter() const { - bool const isenv = layout()->isEnvironment(); - - if (isenv) + if (layout()->isEnvironment()) return params().depth() + 1; else return params().depth(); - } + char Paragraph::getAlign() const { return params().align(); diff --git a/src/text2.C b/src/text2.C index 8e36ef99a3..baf28126b0 100644 --- a/src/text2.C +++ b/src/text2.C @@ -515,7 +515,7 @@ void LyXText::setLayout(BufferView * bview, string const & layout) // increment depth over selection and // make a total rebreak of those paragraphs -void LyXText::incDepth(BufferView * bview) +void LyXText::incDepth(BufferView * bview) { // If there is no selection, just use the current paragraph if (!selection.set()) {