Fix on test 'cpp_classes'
authordaniloaf <none@none>
Fri, 12 Feb 2010 08:56:19 +0000 (05:56 -0300)
committerdaniloaf <none@none>
Fri, 12 Feb 2010 08:56:19 +0000 (05:56 -0300)
tests/run/cpp_classes.pyx
tests/run/shapes.h

index 9c51aed9da67dee0a4abcc6a483a03d3822174a0..438e3ffab867b0be4b2d28c518808ef63fe8c22a 100644 (file)
@@ -19,6 +19,7 @@ cdef extern from "shapes.h" namespace shapes:
     cdef cppclass Rectangle(Shape):
         int width
         int height
+        Rectangle()
         Rectangle(int, int)
     
     cdef cppclass Square(Rectangle):
index 033a30b83ae5ac663b50dbbc037f44e5294fe3b6..aa24ba3b5de05c2a19a1f8162f419ee2915913ee 100644 (file)
@@ -17,6 +17,7 @@ namespace shapes {
     class Rectangle : public Shape
     {
     public:
+       Rectangle() { }
         Rectangle(int width, int height) 
         {
             this->width = width;