[hyena] Fix CS0188 error (bgo#614301)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Fix CS0188 error (bgo#614301)
- Date: Wed, 26 May 2010 02:42:39 +0000 (UTC)
commit fe1029e06bfb001fd09b2a68e1839c20de9c5b9d
Author: Ján Sokoly <cruster gmail com>
Date: Sun Apr 4 11:04:13 2010 +1000
Fix CS0188 error (bgo#614301)
Assigning to properties in struct constructors in Hyena.Gui.Canvas
raises a compile error on Windows. Fixed by calling the default
constructor.
Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>
src/Hyena.Gui/Hyena.Gui.Canvas/Point.cs | 2 +-
src/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs | 6 +++---
src/Hyena.Gui/Hyena.Gui.Canvas/Size.cs | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Gui.Canvas/Point.cs b/src/Hyena.Gui/Hyena.Gui.Canvas/Point.cs
index 35f3037..e05d75b 100644
--- a/src/Hyena.Gui/Hyena.Gui.Canvas/Point.cs
+++ b/src/Hyena.Gui/Hyena.Gui.Canvas/Point.cs
@@ -35,7 +35,7 @@ namespace Hyena.Gui.Canvas
public double X { get; set; }
public double Y { get; set; }
- public Point (double x, double y)
+ public Point (double x, double y) : this ()
{
X = x;
Y = y;
diff --git a/src/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs b/src/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs
index 44e8616..bb49fd7 100644
--- a/src/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs
+++ b/src/Hyena.Gui/Hyena.Gui.Canvas/Rect.cs
@@ -34,7 +34,7 @@ namespace Hyena.Gui.Canvas
{
private double x, y, w, h;
- public Rect (double x, double y, double width, double height)
+ public Rect (double x, double y, double width, double height) : this ()
{
X = x;
Y = y;
@@ -42,7 +42,7 @@ namespace Hyena.Gui.Canvas
Height = height;
}
- public Rect (Point point1, Point point2)
+ public Rect (Point point1, Point point2) : this ()
{
X = Math.Min (point1.X, point2.X);
Y = Math.Min (point1.Y, point2.Y);
@@ -50,7 +50,7 @@ namespace Hyena.Gui.Canvas
Height = Math.Abs (point2.Y - point1.Y);
}
- public Rect (Point location, Size size)
+ public Rect (Point location, Size size) : this ()
{
X = location.X;
Y = location.Y;
diff --git a/src/Hyena.Gui/Hyena.Gui.Canvas/Size.cs b/src/Hyena.Gui/Hyena.Gui.Canvas/Size.cs
index 6e3a759..4d2cca7 100644
--- a/src/Hyena.Gui/Hyena.Gui.Canvas/Size.cs
+++ b/src/Hyena.Gui/Hyena.Gui.Canvas/Size.cs
@@ -35,7 +35,7 @@ namespace Hyena.Gui.Canvas
private double width;
private double height;
- public Size (double width, double height)
+ public Size (double width, double height) : this ()
{
Width = width;
Height = height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]