diff -r e9f8f44f12a3 -r 55cf06f14981 graph_displayer_canvas-edge.cc --- a/graph_displayer_canvas-edge.cc Mon Nov 21 18:03:20 2005 +0000 +++ b/graph_displayer_canvas-edge.cc Tue Nov 22 10:27:25 2005 +0000 @@ -4,18 +4,17 @@ int GraphDisplayerCanvas::resetEdgeWidth (Edge edge) { - Graph::EdgeMap * actual_map; double min, max; min=edge_property_defaults[E_WIDTH]; max=edge_property_defaults[E_WIDTH]; - actual_map=new Graph::EdgeMap(mapstorage.graph,edge_property_defaults[E_WIDTH]); + Graph::EdgeMap actual_map(mapstorage.graph,edge_property_defaults[E_WIDTH]); if(edge==INVALID) { for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i) { - double v=fabs((*actual_map)[i]); + double v=fabs(actual_map[i]); int w; if(min==max) { @@ -30,7 +29,7 @@ } else { - int w=(int)(*actual_map)[edge]; + int w=(int)actual_map[edge]; if(w>=0) { edgesmap[edge]->property_width_units().set_value(w); @@ -135,8 +134,7 @@ //function maps the range of the maximum and //the minimum of the nodemap to the range of //green in RGB - Graph::EdgeMap * actual_map; - actual_map=new Graph::EdgeMap(mapstorage.graph,edge_property_defaults[E_COLOR]); + Graph::EdgeMap actual_map(mapstorage.graph,edge_property_defaults[E_COLOR]); double max, min; @@ -147,7 +145,7 @@ { for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i) { - double w=(*actual_map)[i]; + double w=actual_map[i]; Gdk::Color color; if(max!=min) @@ -165,7 +163,7 @@ { Gdk::Color color; - double w=(*actual_map)[edge]; + double w=actual_map[edge]; if(max!=min) {