]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/profile.cpp
Add basic support for signals
[r2c2.git] / source / libr2c2 / profile.cpp
index 96b06a2c185a1f174d3afa99f1f6de3b67a76569..a9951b2aebc5ab88139edd69c1447b97f7333064 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010-2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <cmath>
 #include "profile.h"
 
@@ -62,7 +55,7 @@ void Profile::append_vertex(const Vector &p, bool smooth)
 const Profile::Vertex &Profile::get_vertex(unsigned i) const
 {
        if(i>=vertices.size())
-               throw InvalidParameterValue("Index out of range");
+               throw out_of_range("Profile::get_vertex");
        return vertices[i];
 }