X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspacing-loose-columns.cc;h=15f77f34a0bcc0283ca5119af4e5958b9df24c06;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=32ffe220322990408a2c00a19222bc4142b7983c;hpb=59a6d1a06432fc0ca88c3023c646182f389ec1b5;p=lilypond.git diff --git a/lily/spacing-loose-columns.cc b/lily/spacing-loose-columns.cc index 32ffe22032..15f77f34a0 100644 --- a/lily/spacing-loose-columns.cc +++ b/lily/spacing-loose-columns.cc @@ -28,8 +28,6 @@ #include "moment.hh" #include "spacing-options.hh" -using std::vector; - /* Find the loose columns in POSNS, and drape them around the columns specified in BETWEEN-COLS. */ void @@ -175,8 +173,8 @@ set_loose_columns (System *which, Column_x_positions const *posns) } Real loose_col_horizontal_length = loose_col->extent (loose_col, X_AXIS).length (); - base_note_space = std::max (base_note_space, loose_col_horizontal_length); - tight_note_space = std::max (tight_note_space, loose_col_horizontal_length); + base_note_space = max (base_note_space, loose_col_horizontal_length); + tight_note_space = max (tight_note_space, loose_col_horizontal_length); clique_spacing.push_back (base_note_space); clique_tight_spacing.push_back (tight_note_space); @@ -195,7 +193,7 @@ set_loose_columns (System *which, Column_x_positions const *posns) sum_tight_spacing += clique_tight_spacing[j]; sum_spacing += clique_spacing[j]; } - Real scale_factor = std::max (0.0, std::min (1.0, (permissible_distance - left_padding - sum_tight_spacing) / (sum_spacing - sum_tight_spacing))); + Real scale_factor = max (0.0, min (1.0, (permissible_distance - left_padding - sum_tight_spacing) / (sum_spacing - sum_tight_spacing))); for (vsize j = clique.size () - 2; j > 0; j--) { Paper_column *clique_col = dynamic_cast (clique[j]);