olena-2.0-383-g8587fe0 scribo/table/internal/align_lines.hh: Update use of math::round.

--- scribo/ChangeLog | 4 ++++ scribo/scribo/table/internal/align_lines.hh | 11 +++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index 18f7ad1..aff1b17 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,5 +1,9 @@ 2013-03-08 Guillaume Lazzara <z@lrde.epita.fr> + * scribo/table/internal/align_lines.hh: Update use of math::round. + +2013-03-08 Guillaume Lazzara <z@lrde.epita.fr> + * doc/Doxyfile.in: Make use of bibliography and .css files. 2013-03-08 Guillaume Lazzara <z@lrde.epita.fr> diff --git a/scribo/scribo/table/internal/align_lines.hh b/scribo/scribo/table/internal/align_lines.hh index 84d6b9d..7aced7d 100644 --- a/scribo/scribo/table/internal/align_lines.hh +++ b/scribo/scribo/table/internal/align_lines.hh @@ -1,4 +1,4 @@ -// Copyright (C) 2009, 2010, 2011 EPITA Research and Development +// Copyright (C) 2009, 2010, 2011, 2013 EPITA Research and Development // Laboratory (LRDE) // // This file is part of Olena. @@ -157,7 +157,6 @@ namespace scribo // be done for nothing... aligned_lines = duplicate(lines); mln::util::array<int> newlines; - math::round<int> round; while (max_nelts > 0) { for_all_elements(i, rlines) @@ -173,11 +172,11 @@ namespace scribo for_all_elements(j, lines[i]) if (box2line[rlines[i][j]] == -1) { - lines(rlines[i][j]).bbox().pmin()[dim] = round(mean.to_result()); - lines(rlines[i][j]).bbox().pmax()[dim] = round(mean.to_result()); - box2line[rlines[i][j]] = round(mean.to_result()); + lines(rlines[i][j]).bbox().pmin()[dim] = math::round<int>(mean.to_result()); + lines(rlines[i][j]).bbox().pmax()[dim] = math::round<int>(mean.to_result()); + box2line[rlines[i][j]] = math::round<int>(mean.to_result()); } - newlines.append(round(mean.to_result())); + newlines.append(math::round<int>(mean.to_result())); } } --max_nelts; -- 1.7.2.5
participants (1)
-
Guillaume Lazzara