Using std:: prefix for the functions in the c* headers gui
authordeba
Fri, 16 Sep 2005 09:01:20 +0000
branchgui
changeset 77ba023627ff1a
parent 76 76f4f2ae0e7d
child 78 1a4e0185afdf
Using std:: prefix for the functions in the c* headers
mapstorage.cc
     1.1 --- a/mapstorage.cc	Sat Aug 27 09:32:34 2005 +0000
     1.2 +++ b/mapstorage.cc	Fri Sep 16 09:01:20 2005 +0000
     1.3 @@ -2,6 +2,8 @@
     1.4  #include <gtkmm.h>
     1.5  #include <cmath>
     1.6  
     1.7 +#include <cmath>
     1.8 +
     1.9  MapStorage::MapStorage() : modified(false), file_name("")
    1.10  {
    1.11    nodemap_storage["coordinates_x"] = new Graph::NodeMap<double>(graph);
    1.12 @@ -208,8 +210,8 @@
    1.13      int i = 0;
    1.14      for (NodeIt n(graph); n != INVALID; ++n)
    1.15      {
    1.16 -      nodemap_storage["coordinates_x"]->set(n, 250.0 * cos(i * step));
    1.17 -      nodemap_storage["coordinates_y"]->set(n, 250.0 * sin(i * step));
    1.18 +      nodemap_storage["coordinates_x"]->set(n, 250.0 * std::cos(i * step));
    1.19 +      nodemap_storage["coordinates_y"]->set(n, 250.0 * std::sin(i * step));
    1.20        i++;
    1.21      }
    1.22    }