commit 6e8b3906df55826281a9ea9a8fd97bf5f7d98613
Author: Scott Kostyshak <[email protected]>
Date: Wed Feb 17 22:56:13 2021 -0500
Fix an instance of -Werror=misleading-indentation
Full GCC output is:
/home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp: In member
function ‘void lyx::InsetText::docbook(lyx::XMLStream&, const
lyx::OutputParams&, lyx::InsetText::XHTMLOptions) const’:
/home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp:713:5: error:
this ‘for’ clause does not guard... [-Werror=misleading-indentation]
713 | for (auto const & arg : appendedArguments)
| ^~~
/home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp:717:2: note:
...this statement, but the latter is misleadingly indented as if it were
guarded by the ‘for’
717 | if (writeOuterTag) {
| ^~
---
src/insets/InsetText.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index 7942588..fa1f40c 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -709,9 +709,9 @@ void InsetText::docbook(XMLStream & xs, OutputParams const
& rp, XHTMLOptions op
docbookParagraphs(text_, buffer(), xs, runparams);
xs.endDivision();
- // - Think about the arguments after the paragraph.
- for (auto const & arg : appendedArguments)
- arg->docbook(xs, np);
+ // - Think about the arguments after the paragraph.
+ for (auto const & arg : appendedArguments)
+ arg->docbook(xs, np);
// - Close the required tags.
if (writeOuterTag) {
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs