
* scribo/text/paragraphs_closing.hh (internal::horizontal_CRLA, internal::vertical_CRLA): Replace empty bodies of loops with single `continue' statements as this is more explicit. --- scribo/ChangeLog | 9 +++++++++ scribo/scribo/text/paragraphs_closing.hh | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index 054429c..01768a6 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,3 +1,12 @@ +2013-02-07 Roland Levillain <roland@lrde.epita.fr> + + Address warnings reported by clang++ in Scribo. + + * scribo/text/paragraphs_closing.hh + (internal::horizontal_CRLA, internal::vertical_CRLA): + Replace empty bodies of loops with single `continue' statements as + this is more explicit. + 2013-02-06 Roland Levillain <roland@lrde.epita.fr> Address remaining errors reported by clang++ in Scribo. diff --git a/scribo/scribo/text/paragraphs_closing.hh b/scribo/scribo/text/paragraphs_closing.hh index 476c14e..e513970 100644 --- a/scribo/scribo/text/paragraphs_closing.hh +++ b/scribo/scribo/text/paragraphs_closing.hh @@ -83,7 +83,8 @@ namespace scribo if (last_pixel_value) { unsigned k = j + 1; - for ( ; !(input.at_(i, k)) && (k < ncols); ++k); + for ( ; !(input.at_(i, k)) && (k < ncols); ++k) + continue; count = k - j; const int threshold = deltas(last_pixel_value); @@ -133,7 +134,8 @@ namespace scribo if (last_pixel_value) { unsigned k = i + 1; - for ( ; !(input.at_(k, j)) && (k < nrows); ++k); + for ( ; !(input.at_(k, j)) && (k < nrows); ++k) + continue; count = k - i; const int threshold = deltas(last_pixel_value); -- 1.7.2.5