]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stencil-integral.cc
Doc: CG - Update information about LilyDev
[lilypond.git] / lily / stencil-integral.cc
index 9a23d2f38c4ec777983dc2e364affdcd9f15bee5..747217c847024b993b307555edcca46c85b025d1 100644 (file)
@@ -55,9 +55,7 @@ when this transforms a point (x,y), the point is written as matrix:
 #include "skyline.hh"
 #include "skyline-pair.hh"
 #include "spanner.hh"
-
-using std::string;
-using std::vector;
+using namespace std;
 
 Real QUANTIZATION_UNIT = 0.2;
 
@@ -186,8 +184,8 @@ make_draw_line_boxes (vector<Box> &boxes, vector<Drul_array<Offset> > &buildings
   //////////////////////
   if (x1 < x0)
     {
-      std::swap (x0, x1);
-      std::swap (y0, y1);
+      swap (x0, x1);
+      swap (y0, y1);
     }
   Offset left (x0, y0);
   Offset right (x1, y1);
@@ -280,7 +278,7 @@ make_partial_ellipse_boxes (vector<Box> &boxes,
   Offset ep (cos (end) * x_rad, sin (end) * y_rad);
   //////////////////////
   Drul_array<vector<Offset> > points;
-  int quantization = std::max (1, (int) (((x_rad * trans.xx) + (y_rad * trans.yy)) * M_PI / QUANTIZATION_UNIT));
+  int quantization = max (1, (int) (((x_rad * trans.xx) + (y_rad * trans.yy)) * M_PI / QUANTIZATION_UNIT));
   for (DOWN_and_UP (d))
     {
       for (vsize i = 0; i < 1 + (vsize) quantization; i++)
@@ -777,7 +775,7 @@ make_glyph_string_boxes (vector<Box> &boxes,
         {
           assert (abs (xlen - ylen) < 10e-3);
 
-          Real scale_factor = std::max (xlen, ylen);
+          Real scale_factor = max (xlen, ylen);
           // the three operations below move the stencil from its original coordinates to current coordinates
           pango_matrix_translate (&transcopy, kerned_bbox[X_AXIS][LEFT],
                                   kerned_bbox[Y_AXIS][DOWN] - real_bbox[Y_AXIS][DOWN]);