COIN-OR::LEMON - Graph Library

Ticket #158: null_445b86e6bb9f.patch

File null_445b86e6bb9f.patch, 3.1 KB (added by Peter Kovacs, 16 years ago)
  • lemon/bfs.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1223459763 -7200
    # Node ID 445b86e6bb9fac1122cc0ab72a31edfcee453866
    # Parent  907446600ca9618c543cd9ba27d594bf79fe2dba
    Use 0 instead of NULL
    
    diff --git a/lemon/bfs.h b/lemon/bfs.h
    a b  
    322322    ///\param g The digraph the algorithm runs on.
    323323    Bfs(const Digraph &g) :
    324324      G(&g),
    325       _pred(NULL), local_pred(false),
    326       _dist(NULL), local_dist(false),
    327       _reached(NULL), local_reached(false),
    328       _processed(NULL), local_processed(false)
     325      _pred(0), local_pred(false),
     326      _dist(0), local_dist(false),
     327      _reached(0), local_reached(false),
     328      _processed(0), local_processed(false)
    329329    { }
    330330
    331331    ///Destructor.
  • lemon/dfs.h

    diff --git a/lemon/dfs.h b/lemon/dfs.h
    a b  
    321321    ///\param g The digraph the algorithm runs on.
    322322    Dfs(const Digraph &g) :
    323323      G(&g),
    324       _pred(NULL), local_pred(false),
    325       _dist(NULL), local_dist(false),
    326       _reached(NULL), local_reached(false),
    327       _processed(NULL), local_processed(false)
     324      _pred(0), local_pred(false),
     325      _dist(0), local_dist(false),
     326      _reached(0), local_reached(false),
     327      _processed(0), local_processed(false)
    328328    { }
    329329
    330330    ///Destructor.
  • lemon/dijkstra.h

    diff --git a/lemon/dijkstra.h b/lemon/dijkstra.h
    a b  
    479479    ///\param _length The length map used by the algorithm.
    480480    Dijkstra(const Digraph& _g, const LengthMap& _length) :
    481481      G(&_g), length(&_length),
    482       _pred(NULL), local_pred(false),
    483       _dist(NULL), local_dist(false),
    484       _processed(NULL), local_processed(false),
    485       _heap_cross_ref(NULL), local_heap_cross_ref(false),
    486       _heap(NULL), local_heap(false)
     482      _pred(0), local_pred(false),
     483      _dist(0), local_dist(false),
     484      _processed(0), local_processed(false),
     485      _heap_cross_ref(0), local_heap_cross_ref(false),
     486      _heap(0), local_heap(false)
    487487    { }
    488488
    489489    ///Destructor.
  • lemon/time_measure.h

    diff --git a/lemon/time_measure.h b/lemon/time_measure.h
    a b  
    187187    ///The time ellapsed since the last call of stamp()
    188188    TimeStamp ellapsed() const
    189189    {
    190       TimeStamp t(NULL);
     190      TimeStamp t(0);
    191191      return t-*this;
    192192    }
    193193
     
    544544  ///and <tt>2*min_time</tt>.
    545545  ///\param f the function object to be measured.
    546546  ///\param min_time the minimum total running time.
    547   ///\retval num if it is not \c NULL, then the actual
     547  ///\retval num if it is set, then the actual
    548548  ///        number of execution of \c f will be written into <tt>*num</tt>.
    549   ///\retval full_time if it is not \c NULL, then the actual
     549  ///\retval full_time if it is set, then the actual
    550550  ///        total running time will be written into <tt>*full_time</tt>.
    551551  ///\return The average running time of \c f.
    552552
    553553  template<class F>
    554   TimeStamp runningTimeTest(F f,double min_time=10,unsigned int *num = NULL,
     554  TimeStamp runningTimeTest(F f,double min_time=10, unsigned int *num=0,
    555555                            TimeStamp *full_time=NULL)
    556556  {
    557557    TimeStamp full;