# HG changeset patch # User deba # Date 1144080326 0 # Node ID 7bf1f64962c26a7441290c019c07487e329c6397 # Parent 18c08f9129e461d924a9dc3206e86ad034b76d7b Small corrections diff -r 18c08f9129e4 -r 7bf1f64962c2 lemon/bfs.h --- a/lemon/bfs.h Mon Apr 03 16:03:37 2006 +0000 +++ b/lemon/bfs.h Mon Apr 03 16:05:26 2006 +0000 @@ -281,7 +281,7 @@ template struct DefProcessedMapTraits : public Traits { typedef T ProcessedMap; - static ProcessedMap *createProcessedMap(const Graph &G) + static ProcessedMap *createProcessedMap(const Graph &) { throw UninitializedParameter(); } diff -r 18c08f9129e4 -r 7bf1f64962c2 lemon/preflow.h --- a/lemon/preflow.h Mon Apr 03 16:03:37 2006 +0000 +++ b/lemon/preflow.h Mon Apr 03 16:05:26 2006 +0000 @@ -159,16 +159,16 @@ ///Except the graph, all of these parameters can be reset by ///calling \ref source, \ref target, \ref capacityMap and \ref ///flowMap, resp. - Preflow(const Graph& _gr, Node _s, Node _t, - const CapacityMap& _cap, FlowMap& _f, - const Tolerance &_sr=Tolerance()) : + Preflow(const Graph& _gr, Node _s, Node _t, + const CapacityMap& _cap, FlowMap& _f, + const Tolerance &_sr=Tolerance()) : _g(&_gr), _source(_s), _target(_t), _capacity(&_cap), _flow(&_f), _surely(_sr), _node_num(countNodes(_gr)), level(_gr), excess(_gr,0), flow_prop(NO_FLOW), status(AFTER_NOTHING) { if ( _source==_target ) throw InvalidArgument(); - } + } ///Give a reference to the tolerance handler class diff -r 18c08f9129e4 -r 7bf1f64962c2 lemon/radix_sort.h --- a/lemon/radix_sort.h Mon Apr 03 16:03:37 2006 +0000 +++ b/lemon/radix_sort.h Mon Apr 03 16:05:26 2006 +0000 @@ -325,8 +325,7 @@ Allocator allocator; int length = std::distance(first, last); - Key* buffer; - buffer = allocator.allocate(2 * length); + Key* buffer = allocator.allocate(2 * length); try { bool dir = true; std::copy(first, last, buffer); @@ -364,16 +363,17 @@ Allocator allocator; int length = std::distance(first, last); - Key *buffer; - buffer = allocator.allocate(2 * length); + Key *buffer = allocator.allocate(2 * length); try { bool dir = true; std::copy(first, last, buffer); for (int i = 0; i < (int)sizeof(Value); ++i) { if (dir) { - counterIntroSort(buffer, buffer + length, buffer + length, i, functor); + counterIntroSort(buffer, buffer + length, + buffer + length, i, functor); } else { - counterIntroSort(buffer + length, buffer + 2 * length, buffer, i, functor); + counterIntroSort(buffer + length, buffer + 2 * length, + buffer, i, functor); } dir = !dir; }