]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/motion/arc.cc
Fix compilation errors on recent Linux distributions
[eurobot/public.git] / src / motion / arc.cc
index 7943a645dc4fda155a98f5b8db6deacdecbc1935..195b99f93272fec8d90ea4e7f0b3cfe2fe5eec59 100644 (file)
@@ -1,4 +1,4 @@
-//     Copyright 2009 Michal Sojka <sojkam1@fel.cvut.cz>
+//     Copyright 2009, 2012 Michal Sojka <sojkam1@fel.cvut.cz>
 //     Copyright 2009 Petr Beneš
 //
 //     This file is part of Trgen library.
@@ -86,7 +86,7 @@ namespace Segment {
 
     TrajectorySegment* Arc::splitAt(double distance, Point *newEnd) {
         if (distance <= 0 || distance >= length)
-            return NULL;
+            return 0;
 
         getPointAt(distance, newEnd);
         Arc *ns = new Arc(*this);