]> Dogcows Code - chaz/openbox/commitdiff
x() and y() should return values :)
authorDana Jansens <danakj@orodu.net>
Sun, 10 Nov 2002 12:15:03 +0000 (12:15 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 10 Nov 2002 12:15:03 +0000 (12:15 +0000)
otk/point.hh

index 425cb2185b325633e9cdf7f6df90e17ae3f337df..2c6d334c0347db7484a4a426c7fc1eaf88516b7f 100644 (file)
@@ -14,7 +14,7 @@ private:
   //! The x value
   int _x;
   //! The y value
- int _y;
 int _y;
 
 public:
   //! Constructs a new Point with 0,0 values
@@ -25,12 +25,12 @@ public:
   //! Changes the x value to the new value specified
   void setX(int x) { _x = x; }
   //! Returns the x value
-  void x() const { return _x; }
+  int x() const { return _x; }
 
   //! Changes the y value to the new value specified
   void setY(int x) { _x = x; }
   //! Returns the y value
-  void y() const { return _x; }
+  int y() const { return _x; }
 };
 
 }
This page took 0.026 seconds and 4 git commands to generate.