X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-spacing-result.cc;h=1f29d20f98297b0c59b261b624ed41783acbf572;hb=a6a51abfd0195a3cf7d6ea095cf69808852f21ce;hp=9cd044f16c2afb5afe2d903e5f0dd24b414d70c7;hpb=e18531db1f79fb685fbd16d6a2a67bf4b6c09915;p=lilypond.git diff --git a/lily/page-spacing-result.cc b/lily/page-spacing-result.cc index 9cd044f16c..1f29d20f98 100644 --- a/lily/page-spacing-result.cc +++ b/lily/page-spacing-result.cc @@ -1,8 +1,8 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2007--2010 Han-Wen Nienhuys - + Copyright (C) 2007--2015 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,20 +28,10 @@ Page_spacing_result::Page_spacing_result () system_count_status_ = SYSTEM_COUNT_OK; } -vsize -Page_spacing_result::system_count () const -{ - vsize total = 0; - for (vsize i = 0; i < systems_per_page_.size(); i++) - total += systems_per_page_[i]; - - return total; -} - vsize Page_spacing_result::page_count () const { - return systems_per_page_.size(); + return systems_per_page_.size (); } Real @@ -58,8 +48,8 @@ Page_spacing_result::average_force () const void Page_spacing_result::print () const { - printf ("penalty %lf, demerits %lf\n" , penalty_, demerits_); + printf ("penalty %lf, demerits %lf\n", penalty_, demerits_); for (vsize i = 0; i < page_count (); i++) printf (" %d: #sys=%d, force=%lf\n", int (i), int (systems_per_page_[i]), - force_[i]); + force_[i]); }