Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(750)

Unified Diff: lily/ledger-line-spanner.cc

Issue 579240043: Issue 4550: Avoid "using namespace std;" in included files (Take 2) (Closed)
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lily/ledger-line-spanner.cc
diff --git a/lily/ledger-line-spanner.cc b/lily/ledger-line-spanner.cc
index b1ce725593b314b26a6362cdf20651ed4ec00337..84ec5d8e8cd50fa78f1e8108c134d215910820a3 100644
--- a/lily/ledger-line-spanner.cc
+++ b/lily/ledger-line-spanner.cc
@@ -29,6 +29,9 @@
#include "interval-set.hh"
#include "std-vector.hh"
+using std::map;
+using std::vector;
+
struct Ledger_line_spanner
{
DECLARE_SCHEME_CALLBACK (print, (SCM));
@@ -130,7 +133,7 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
continue;
current_extents[vdir].unite (head_extent);
- current_head_width = max (current_head_width, head_extent.length ());
+ current_head_width = std::max (current_head_width, head_extent.length ());
}
if (previous_column && current_column)
@@ -233,7 +236,7 @@ Ledger_line_spanner::print (SCM smob)
reqs[rank][vdir].max_ledger_extent_.unite (ledger_extent);
reqs[rank][vdir].max_head_extent_.unite (head_extent);
reqs[rank][vdir].max_position_
- = vdir * max (vdir * reqs[rank][vdir].max_position_,
+ = vdir * std::max (vdir * reqs[rank][vdir].max_position_,
vdir * pos);
Head_data hd;
hd.position_ = pos;
@@ -288,7 +291,7 @@ Ledger_line_spanner::print (SCM smob)
Real limit = (center + (both ? which * gap / 2 : 0));
lr.max_ledger_extent_.at (-which)
- = which * max (which * lr.max_ledger_extent_[-which],
+ = which * std::max (which * lr.max_ledger_extent_[-which],
which * limit);
}
}
@@ -331,7 +334,7 @@ Ledger_line_spanner::print (SCM smob)
head_size[LEFT]),
0.0);
- Real left_shorten = max (-ledger_size[LEFT] + dist, 0.0);
+ Real left_shorten = std::max (-ledger_size[LEFT] + dist, 0.0);
x_extent[LEFT] += left_shorten;
/*
TODO: shorten 2 ledger lines for the case
« flower/include/file-name.hh ('K') | « lily/ledger-line-engraver.cc ('k') | lily/lexer.ll » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b