]> git.lyx.org Git - features.git/commit
Fix an instance of -Werror=misleading-indentation
authorScott Kostyshak <skostysh@lyx.org>
Thu, 18 Feb 2021 03:56:13 +0000 (22:56 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 18 Feb 2021 04:01:54 +0000 (23:01 -0500)
commit6e8b3906df55826281a9ea9a8fd97bf5f7d98613
tree934e95a3edd18c24b6affefbe2e5868f021b4043
parentc21cd7dc2bc2f1f95ebfa1bf2778bf391f908dfb
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