X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-spacing-result.cc;fp=lily%2Fpage-spacing-result.cc;h=827dbd44444fca9e450f58bd1820b53bda917499;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=f3d5b21e22c82b818d7a24d00e8a7e9c3200bc52;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/lily/page-spacing-result.cc b/lily/page-spacing-result.cc index f3d5b21e22..827dbd4444 100644 --- a/lily/page-spacing-result.cc +++ b/lily/page-spacing-result.cc @@ -1,10 +1,21 @@ -/* - page-spacing-result.cc -- implement Page_spacing_result - - source file of the GNU LilyPond music typesetter - - (c) 2007--2009 Han-Wen Nienhuys +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 2007--2011 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "page-spacing-result.hh" @@ -14,16 +25,7 @@ Page_spacing_result::Page_spacing_result () { penalty_ = 0; demerits_ = infinity_f; -} - -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; + system_count_status_ = SYSTEM_COUNT_OK; } vsize