Commit 6e24fced authored by Roland Levillain's avatar Roland Levillain
Browse files

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.
parent 6a5f908a
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.
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment