COIN-OR::LEMON - Graph Library

Changeset 1494:ae55ba000ebb in lemon-0.x


Ignore:
Timestamp:
06/15/05 12:19:44 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1975
Message:

gcc-4.0 compatibility changes
coloring.cc still generates warnings. Don't know why.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • gui/edit_win.cc

    r1485 r1494  
    1919 
    2020  //buttons array
    21   buttons=new (Gtk::RadioButton *) [TOOL_NUM];
     21  buttons=new Gtk::RadioButton * [TOOL_NUM];
    2222  for(int i=0;i<TOOL_NUM;i++)
    2323    {
  • lemon/concept/graph_component.h

    r1435 r1494  
    409409          typename _Graph::Node node_a, node_b;
    410410          node_a = graph.addNode();
     411          node_b = graph.addNode();
    411412          typename _Graph::Edge edge;
    412413          edge = graph.addEdge(node_a, node_b);
     
    928929          typename _Graph::Node node_a, node_b;
    929930          node_a = graph.addNode();
     931          node_b = graph.addNode();
    930932          typename _Graph::Edge edge;
    931933          edge = graph.addEdge(node_a, node_b);     
  • lemon/concept/heap.h

    r1435 r1494  
    156156          Prio prio;
    157157
     158          item=Item();
     159          prio=Prio();
     160
    158161          ignore_unused_variable_warning(item);
    159162          ignore_unused_variable_warning(prio);
  • lemon/graph_to_eps.h

    r1470 r1494  
    331331  typedef typename Graph::OutEdgeIt OutEdgeIt;
    332332
    333   static const int INTERPOL_PREC=20;
    334   static const double A4HEIGHT = 841.8897637795276;
    335   static const double A4WIDTH  = 595.275590551181;
    336   static const double A4BORDER = 15;
     333  static const int INTERPOL_PREC;
     334  static const double A4HEIGHT;
     335  static const double A4WIDTH;
     336  static const double A4BORDER;
    337337
    338338  bool dontPrint;
     
    706706      os << "%%CreationDate: " << cbuf;
    707707    }
    708     ///\todo: Chech whether the graph is empty.
    709708    BoundingBox<double> bb;
     709    ///\bug: Chech whether the graph is empty.
     710    if(NodeIt(g)==INVALID) bb+=xy<double>(0,0);
    710711    for(NodeIt n(g);n!=INVALID;++n) {
    711712      double ns=_nodeSizes[n]*_nodeScale;
     
    976977};
    977978
     979template<class T>
     980const int GraphToEps<T>::INTERPOL_PREC = 20;
     981template<class T>
     982const double GraphToEps<T>::A4HEIGHT = 841.8897637795276;
     983template<class T>
     984const double GraphToEps<T>::A4WIDTH  = 595.275590551181;
     985template<class T>
     986const double GraphToEps<T>::A4BORDER = 15;
     987
    978988
    979989///Generates an EPS file from a graph
  • lemon/lemon_reader.h

    r1492 r1494  
    311311      }
    312312
     313      virtual ~SectionReader() {}
     314
    313315      /// \brief Gives back true when the SectionReader can process
    314316      /// the section with the given header line.
     
    572574    public:
    573575      typedef _Item Item;
     576      virtual ~IdReaderBase() {}
    574577      virtual Item read(std::istream& is) const = 0;
    575578      virtual bool isIdReader() const = 0;
     
    601604    public:
    602605      virtual void read(std::istream&) {};
     606      virtual ~ValueReaderBase() {}
    603607    };
    604608
  • lemon/lemon_writer.h

    r1492 r1494  
    132132        writer.attach(*this);
    133133      }
     134     
     135      virtual ~SectionWriter() {}
    134136
    135137      /// \brief The header of section.
     
    251253    class ValueWriterBase {
    252254    public:
     255      virtual ~ValueWriterBase() {}
    253256      virtual void write(std::ostream&) = 0;
    254257    };
     
    276279    public:
    277280      typedef _Item Item;
     281      virtual ~IdWriterBase() {}
    278282      virtual void write(std::ostream&, const Item&) const = 0;
    279283      virtual bool isIdWriter() const = 0;
  • test/max_matching_test.cc

    r1435 r1494  
    1919#include <vector>
    2020#include <queue>
    21 #include <math.h>
     21#include <cmath>
    2222#include <cstdlib>
    2323
Note: See TracChangeset for help on using the changeset viewer.