Ticket #123: dim2_point_03b3e59f0b4f.patch
File dim2_point_03b3e59f0b4f.patch, 586 bytes (added by , 17 years ago) |
---|
-
lemon/dim2.h
# HG changeset patch # User Peter Kovacs <kpeter@inf.elte.hu> # Date 1216023111 -7200 # Node ID 03b3e59f0b4ff0b46ecb40fa0a233e0c126cf393 # Parent 81cfc04531e8fcf0a6e72f22ff2871fcb827c416 Set dim2::Point default constructor to (0,0) diff -r 81cfc04531e8 -r 03b3e59f0b4f lemon/dim2.h
a b 62 62 T y; 63 63 64 64 ///Default constructor 65 Point() {}65 Point() : x(0), y(0) {} 66 66 67 67 ///Construct an instance from coordinates 68 68 Point(T a, T b) : x(a), y(b) { }