From 6ba8bdc14c72ca0aad80376c10bff8083af1f6ea Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 25 Jan 2020 07:03:14 -0800 Subject: [PATCH] Fixed default ctor issues --- BeefLibs/Beefy2D/src/geom/Quaternion.bf | 7 ++++++- BeefLibs/corlib/src/Globalization/CultureInfo.bf | 5 +++++ BeefLibs/corlib/src/Threading/Thread.bf | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/BeefLibs/Beefy2D/src/geom/Quaternion.bf b/BeefLibs/Beefy2D/src/geom/Quaternion.bf index 48f3208d..298f1d9e 100644 --- a/BeefLibs/Beefy2D/src/geom/Quaternion.bf +++ b/BeefLibs/Beefy2D/src/geom/Quaternion.bf @@ -10,7 +10,12 @@ namespace Beefy.geom public float mZ; public float mW; public static readonly Quaternion Identity = Quaternion(0, 0, 0, 1); - + + public this() + { + this = default; + } + public this(float x, float y, float z, float w) { mX = x; diff --git a/BeefLibs/corlib/src/Globalization/CultureInfo.bf b/BeefLibs/corlib/src/Globalization/CultureInfo.bf index 4fa98af0..95ca0721 100644 --- a/BeefLibs/corlib/src/Globalization/CultureInfo.bf +++ b/BeefLibs/corlib/src/Globalization/CultureInfo.bf @@ -226,6 +226,11 @@ namespace System.Globalization return (temp); } + private this() + { + + } + public this(String name) : this(name, true) { } diff --git a/BeefLibs/corlib/src/Threading/Thread.bf b/BeefLibs/corlib/src/Threading/Thread.bf index b2090c0d..d7de4ad9 100644 --- a/BeefLibs/corlib/src/Threading/Thread.bf +++ b/BeefLibs/corlib/src/Threading/Thread.bf @@ -93,6 +93,11 @@ namespace System.Threading } } + private this() + { + + } + public this(ThreadStart start) { if (start == null)