]> https://gitweb.dealii.org/ - dealii.git/commitdiff
avoid Point(true) constructor in write_svg 1918/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 28 Nov 2015 12:59:14 +0000 (07:59 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sat, 28 Nov 2015 12:59:14 +0000 (07:59 -0500)
Pointd are always initialized to zero anyways and this call confuses MSVC.

source/base/data_out_base.cc

index bbe6a7c2e4cb8210b383c13d5b3fb5a4f99ee429..ff0005d352cb1799f591fa789f0213608c5b0897 100644 (file)
@@ -2506,7 +2506,7 @@ namespace DataOutBase
 
       double lambda = - gradient[0] * (v_min[0] - v_max[0]) - gradient[1] * (v_min[1] - v_max[1]);
 
-      Point<6> gradient_parameters(true);
+      Point<6> gradient_parameters;
 
       gradient_parameters[0] = v_min[0];
       gradient_parameters[1] = v_min[1];
@@ -5416,9 +5416,9 @@ namespace DataOutBase
 
 
 // set initial camera position
-    Point<3> camera_position(true);
-    Point<3> camera_direction(true);
-    Point<3> camera_horizontal(true);
+    Point<3> camera_position;
+    Point<3> camera_direction;
+    Point<3> camera_horizontal;
     float camera_focus = 0;
 
     // translate camera from the origin to the initial position
@@ -5498,7 +5498,7 @@ namespace DataOutBase
     n_subdivisions = patch->n_subdivisions;
     n = n_subdivisions + 1;
 
-    Point<3> point(true);
+    Point<3> point;
 
     compute_node(projected_point, &*patch, 0, 0, 0, n_subdivisions);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.