Forráskód Böngészése

Fixed object initializer warnings

Brian Fiete 5 éve
szülő
commit
f795215b44

+ 1 - 1
BeefLibs/Beefy2D/src/BFApp.bf

@@ -70,7 +70,7 @@ namespace Beefy
         public uint32 mLastFPSUpdateCnt;
         public uint32 mLastFPSUpdateCnt;
 
 
 		public Matrix4? mColorMatrix;
 		public Matrix4? mColorMatrix;
-		public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] { ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage }) ~ delete _;
+		public ConstantDataDefinition mColorMatrixDataDef = new ConstantDataDefinition(16, new ConstantDataDefinition.DataType[] ( ConstantDataDefinition.DataType.Matrix | ConstantDataDefinition.DataType.PixelShaderUsage )) ~ delete _;
 
 
 		[CallingConvention(.Stdcall), CLink]
 		[CallingConvention(.Stdcall), CLink]
 		static extern void Lib_Startup(int32 argc, char8** argv, void* startupCallback);
 		static extern void Lib_Startup(int32 argc, char8** argv, void* startupCallback);

+ 2 - 2
BeefLibs/Beefy2D/src/gfx/Font.bf

@@ -477,14 +477,14 @@ namespace Beefy.gfx
 
 
 		static MarkPosition[] sMarkPositionsLow = new MarkPosition[0x70]
 		static MarkPosition[] sMarkPositionsLow = new MarkPosition[0x70]
 		//       0        1        2        3            4        5        6        7             8        9        A        B             C        D        E        F
 		//       0        1        2        3            4        5        6        7             8        9        A        B             C        D        E        F
-       /*0*/{.AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
+       /*0*/(.AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
 	   /*1*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveE, .AboveC, .AboveC, /**/ .BelowC, .BelowC, .AboveE, .TopR,   /**/ .BelowC, .BelowC, .BelowC, .BelowC,
 	   /*1*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveE, .AboveC, .AboveC, /**/ .BelowC, .BelowC, .AboveE, .TopR,   /**/ .BelowC, .BelowC, .BelowC, .BelowC,
 	   /*2*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC,
 	   /*2*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .BelowC,
        /*3*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .OverC , .OverC , .OverC , .OverC , /**/ .OverC , .BelowC, .BelowC, .BelowC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
        /*3*/ .BelowC, .BelowC, .BelowC, .BelowC, /**/ .OverC , .OverC , .OverC , .OverC , /**/ .OverC , .BelowC, .BelowC, .BelowC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
        /*4*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .BelowC, .OverC,
        /*4*/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .AboveC, .AboveC, /**/ .AboveC, .BelowC, .BelowC, .OverC,
        /*5*/ .AboveC, .AboveC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .AboveC, /**/ .AboveE, .BelowC, .AboveC, .AboveC, /**/ .BelowR, .AboveR, .AboveR, .BelowR,
        /*5*/ .AboveC, .AboveC, .AboveC, .BelowC, /**/ .BelowC, .BelowC, .BelowC, .AboveC, /**/ .AboveE, .BelowC, .AboveC, .AboveC, /**/ .BelowR, .AboveR, .AboveR, .BelowR,
        /*6*/ .AboveR, .AboveR, .BelowR, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
        /*6*/ .AboveR, .AboveR, .BelowR, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC, /**/ .AboveC, .AboveC, .AboveC, .AboveC,
-			} ~ delete _;
+			) ~ delete _;
 
 
 		MarkPosition GetMarkPosition(char32 checkChar)
 		MarkPosition GetMarkPosition(char32 checkChar)
 		{
 		{

+ 1 - 1
BeefLibs/Beefy2D/src/theme/dark/DarkEditWidget.bf

@@ -23,7 +23,7 @@ namespace Beefy.theme.dark
 		public uint32 mViewWhiteSpaceColor;
 		public uint32 mViewWhiteSpaceColor;
 		public bool mScrollToStartOnLostFocus;
 		public bool mScrollToStartOnLostFocus;
 
 
-		protected static uint32[] sDefaultColors = new uint32[] { Color.White } ~ delete _;
+		protected static uint32[] sDefaultColors = new uint32[] ( Color.White ) ~ delete _;
 
 
         public this(EditWidgetContent refContent = null) : base(refContent)
         public this(EditWidgetContent refContent = null) : base(refContent)
         {
         {

+ 2 - 2
BeefLibs/Beefy2D/src/theme/dark/DarkTheme.bf

@@ -226,7 +226,7 @@ namespace Beefy.theme.dark
             Get();
             Get();
 
 
             DesignToolboxEntry [] entries = new DesignToolboxEntry [] 
             DesignToolboxEntry [] entries = new DesignToolboxEntry [] 
-            {
+            (
                 new DesignToolboxEntry("ButtonWidget", typeof(DarkButton), sDarkTheme.mImages[(int32)ImageIdx.UIButton]),
                 new DesignToolboxEntry("ButtonWidget", typeof(DarkButton), sDarkTheme.mImages[(int32)ImageIdx.UIButton]),
                 new DesignToolboxEntry("LabelWidget", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UILabel]),                
                 new DesignToolboxEntry("LabelWidget", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UILabel]),                
                 new DesignToolboxEntry("EditWidget", typeof(DarkEditWidget), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIEdit]),
                 new DesignToolboxEntry("EditWidget", typeof(DarkEditWidget), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIEdit]),
@@ -235,7 +235,7 @@ namespace Beefy.theme.dark
                 new DesignToolboxEntry("RadioButton", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIRadioButton]),
                 new DesignToolboxEntry("RadioButton", null, sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIRadioButton]),
                 new DesignToolboxEntry("ListView", typeof(DarkListView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIListView]),
                 new DesignToolboxEntry("ListView", typeof(DarkListView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UIListView]),
                 new DesignToolboxEntry("TabView", typeof(DarkTabbedView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UITabView])
                 new DesignToolboxEntry("TabView", typeof(DarkTabbedView), sDarkTheme.mImages[(int32)DarkTheme.ImageIdx.UITabView])
-            };
+            );
 
 
             for (DesignToolboxEntry entry in entries)
             for (DesignToolboxEntry entry in entries)
                 entry.mGroupName = "DarkTheme";
                 entry.mGroupName = "DarkTheme";

+ 1 - 1
BeefLibs/Beefy2D/src/utils/IdSpan.bf

@@ -31,7 +31,7 @@ namespace Beefy.utils
 			case Remove;
 			case Remove;
 		}
 		}
 
 
-        static uint8[] sEmptyData = new uint8[] { 0 } ~ delete _;
+        static uint8[] sEmptyData = new uint8[] ( 0 ) ~ delete _;
 
 
         public uint8[] mData;
         public uint8[] mData;
         public int32 mLength;
         public int32 mLength;

+ 2 - 2
IDE/src/BuildContext.bf

@@ -375,12 +375,12 @@ namespace IDE
 				        if (mPtrSize == 4)
 				        if (mPtrSize == 4)
 				        {
 				        {
 				            fromDir = scope:: String(llvmDir, "i686-w64-mingw32/bin/");
 				            fromDir = scope:: String(llvmDir, "i686-w64-mingw32/bin/");
-				            mingwFiles = scope:: String[] { "libgcc_s_dw2-1.dll", "libstdc++-6.dll" };
+				            mingwFiles = scope:: String[] ( "libgcc_s_dw2-1.dll", "libstdc++-6.dll" );
 				        }
 				        }
 				        else
 				        else
 				        {
 				        {
 				            fromDir = scope:: String(llvmDir, "x86_64-w64-mingw32/bin/");
 				            fromDir = scope:: String(llvmDir, "x86_64-w64-mingw32/bin/");
-				            mingwFiles = scope:: String[] { "libgcc_s_seh-1.dll", "libstdc++-6.dll", "libwinpthread-1.dll" };
+				            mingwFiles = scope:: String[] ( "libgcc_s_seh-1.dll", "libstdc++-6.dll", "libwinpthread-1.dll" );
 				        }
 				        }
 				        for (var mingwFile in mingwFiles)
 				        for (var mingwFile in mingwFiles)
 				        {
 				        {

+ 2 - 2
IDE/src/SpellChecker.bf

@@ -27,9 +27,9 @@ namespace IDE
 
 
         void* mNativeSpellChecker;
         void* mNativeSpellChecker;
 
 
-        String[] mLangWordList = new String[] {
+        String[] mLangWordList = new String[] (
             "int", "uint", "struct", "bool", "enum", "int", "proj", "newbox", "params", "typeof",  "var"
             "int", "uint", "struct", "bool", "enum", "int", "proj", "newbox", "params", "typeof",  "var"
-        } ~ delete _;
+        ) ~ delete _;
 
 
 		public String mLangPath ~ delete _;
 		public String mLangPath ~ delete _;
         public HashSet<String> mIgnoreWordList = new HashSet<String>() ~ DeleteContainerAndItems!(_);
         public HashSet<String> mIgnoreWordList = new HashSet<String>() ~ DeleteContainerAndItems!(_);

+ 1 - 1
IDE/src/ui/BinaryDataWidget.bf

@@ -691,7 +691,7 @@ namespace IDE.ui
 					RehupSize();
 					RehupSize();
 				});
 				});
 
 
-            for (int32 c in scope int32[] { 4, 8, 16, 32, 64 })
+            for (int32 c in scope int32[] ( 4, 8, 16, 32, 64 ))
             {
             {
                 columnChoice = menuItem.AddItem(StackStringFormat!("{0} bytes", c));
                 columnChoice = menuItem.AddItem(StackStringFormat!("{0} bytes", c));
                 if ((mAutoResizeType == .Manual) && (c == (int32)mBytesPerDisplayLine))
                 if ((mAutoResizeType == .Manual) && (c == (int32)mBytesPerDisplayLine))

+ 8 - 8
IDE/src/ui/BuildPropertiesDialog.bf

@@ -133,15 +133,15 @@ namespace IDE.ui
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mRuntimeChecks");
 			typeName.Clear(); typeName.Append(optionsName, "mRuntimeChecks");
 			AddPropertiesItem(category, "Runtime Checks", typeName,
 			AddPropertiesItem(category, "Runtime Checks", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mEmitDynamicCastCheck");
 			typeName.Clear(); typeName.Append(optionsName, "mEmitDynamicCastCheck");
 			AddPropertiesItem(category, "Dynamic Cast Check", typeName,
 			AddPropertiesItem(category, "Dynamic Cast Check", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mEmitObjectAccessCheck");
 			typeName.Clear(); typeName.Append(optionsName, "mEmitObjectAccessCheck");
 			AddPropertiesItem(category, "Object Access Check", typeName,
 			AddPropertiesItem(category, "Object Access Check", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mAllocStackTraceDepth");
 			typeName.Clear(); typeName.Append(optionsName, "mAllocStackTraceDepth");
 			AddPropertiesItem(category, "Alloc Stack Trace Depth", typeName);
 			AddPropertiesItem(category, "Alloc Stack Trace Depth", typeName);
@@ -153,23 +153,23 @@ namespace IDE.ui
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectStaticFields");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectStaticFields");
 			AddPropertiesItem(reflectItem, "Static Fields", typeName,
 			AddPropertiesItem(reflectItem, "Static Fields", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticFields");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticFields");
 			AddPropertiesItem(reflectItem, "Non-Static Fields", typeName,
 			AddPropertiesItem(reflectItem, "Non-Static Fields", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectStaticMethods");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectStaticMethods");
 			AddPropertiesItem(reflectItem, "Static Methods", typeName,
 			AddPropertiesItem(reflectItem, "Static Methods", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticMethods");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectNonStaticMethods");
 			AddPropertiesItem(reflectItem, "Non-Static Methods", typeName,
 			AddPropertiesItem(reflectItem, "Non-Static Methods", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectConstructors");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectConstructors");
 			AddPropertiesItem(reflectItem, "Constructors", typeName,
 			AddPropertiesItem(reflectItem, "Constructors", typeName,
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 
 
 			typeName.Clear(); typeName.Append(optionsName, "mReflectMethodFilter");
 			typeName.Clear(); typeName.Append(optionsName, "mReflectMethodFilter");
 			AddPropertiesItem(reflectItem, "Method Filter", typeName);
 			AddPropertiesItem(reflectItem, "Method Filter", typeName);

+ 18 - 18
IDE/src/ui/ProjectProperties.bf

@@ -618,13 +618,13 @@ namespace IDE.ui
         {
         {
             var root = (DarkListViewItem)mPropPage.mPropertiesListView.GetRoot();
             var root = (DarkListViewItem)mPropPage.mPropertiesListView.GetRoot();
 			AddPropertiesItem(root, "Target Type", "mTargetType", scope String[]
 			AddPropertiesItem(root, "Target Type", "mTargetType", scope String[]
-				{
+				(
 					"Console Application",
 					"Console Application",
 					"GUI Application",
 					"GUI Application",
 					"Library",
 					"Library",
 					"Dynamic Library",
 					"Dynamic Library",
 					"Custom Build"
 					"Custom Build"
-				});
+				));
 			AddPropertiesItem(root, "Project Name Aliases", "mAliases");
 			AddPropertiesItem(root, "Project Name Aliases", "mAliases");
         }
         }
 
 
@@ -822,7 +822,7 @@ namespace IDE.ui
 			AddPropertiesItem(category, "Reloc Model", "mBeefOptions.mRelocType");
 			AddPropertiesItem(category, "Reloc Model", "mBeefOptions.mRelocType");
 			AddPropertiesItem(category, "PIC Level", "mBeefOptions.mPICLevel");
 			AddPropertiesItem(category, "PIC Level", "mBeefOptions.mPICLevel");
             AddPropertiesItem(category, "Optimization Level", "mBeefOptions.mOptimizationLevel",
             AddPropertiesItem(category, "Optimization Level", "mBeefOptions.mOptimizationLevel",
-                scope String[] { "O0", "O1", "O2", "O3", "Og", "Og+" }); // -O0 .. -O3,  -Os, -Ofast, -Og
+                scope String[] ( "O0", "O1", "O2", "O3", "Og", "Og+" )); // -O0 .. -O3,  -Os, -Ofast, -Og
 			AddPropertiesItem(category, "LTO", "mBeefOptions.mLTOType");
 			AddPropertiesItem(category, "LTO", "mBeefOptions.mLTOType");
             AddPropertiesItem(category, "Vectorize Loops", "mBeefOptions.mVectorizeLoops");
             AddPropertiesItem(category, "Vectorize Loops", "mBeefOptions.mVectorizeLoops");
             AddPropertiesItem(category, "Vectorize SLP", "mBeefOptions.mVectorizeSLP");
             AddPropertiesItem(category, "Vectorize SLP", "mBeefOptions.mVectorizeSLP");
@@ -848,7 +848,7 @@ namespace IDE.ui
             AddPropertiesItem(category, "Other C Flags", "mCOptions.mOtherCFlags");
             AddPropertiesItem(category, "Other C Flags", "mCOptions.mOtherCFlags");
             AddPropertiesItem(category, "Other C++ Flags", "mCOptions.mOtherCPPFlags");
             AddPropertiesItem(category, "Other C++ Flags", "mCOptions.mOtherCPPFlags");
             AddPropertiesItem(category, "Enable Beef Interop", "mCOptions.mEnableBeefInterop",
             AddPropertiesItem(category, "Enable Beef Interop", "mCOptions.mEnableBeefInterop",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
             var parent = AddPropertiesItem(category, "Include Paths", "mCOptions.mIncludePaths");
             var parent = AddPropertiesItem(category, "Include Paths", "mCOptions.mIncludePaths");
             parent = AddPropertiesItem(category, "Preprocessor Macros", "mCOptions.mPreprocessorMacros");
             parent = AddPropertiesItem(category, "Preprocessor Macros", "mCOptions.mPreprocessorMacros");
             //parent.MakeParent();
             //parent.MakeParent();
@@ -858,23 +858,23 @@ namespace IDE.ui
             category.mIsBold = true;
             category.mIsBold = true;
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             AddPropertiesItem(category, "Disable C++ Exceptions", "mCOptions.mDisableExceptions",
             AddPropertiesItem(category, "Disable C++ Exceptions", "mCOptions.mDisableExceptions",
-                scope String[] { "No", "Yes (-fno-exceptions)" }); // -fno-exceptions
+                scope String[] ( "No", "Yes (-fno-exceptions)" )); // -fno-exceptions
             AddPropertiesItem(category, "SIMD Instructions", "mCOptions.mSIMD"); // -msse, -msse2, -msse4.1, -mno-sse
             AddPropertiesItem(category, "SIMD Instructions", "mCOptions.mSIMD"); // -msse, -msse2, -msse4.1, -mno-sse
             AddPropertiesItem(category, "Generate LLVM IR", "mCOptions.mGenerateLLVMAsm",
             AddPropertiesItem(category, "Generate LLVM IR", "mCOptions.mGenerateLLVMAsm",
-                scope String[] { "No", "Yes (-emit-llvm)" });
+                scope String[] ( "No", "Yes (-emit-llvm)" ));
             AddPropertiesItem(category, "No Omit Frame Pointers", "mCOptions.mNoOmitFramePointers",
             AddPropertiesItem(category, "No Omit Frame Pointers", "mCOptions.mNoOmitFramePointers",
-                scope String[] { "No", "Yes (-fno-omit-frame-pointer)" }); //-fno-omit-frame-pointer
+                scope String[] ( "No", "Yes (-fno-omit-frame-pointer)" )); //-fno-omit-frame-pointer
             AddPropertiesItem(category, "Disable Inlining", "mCOptions.mDisableInlining",
             AddPropertiesItem(category, "Disable Inlining", "mCOptions.mDisableInlining",
-                scope String[] { "No", "Yes (-fno-inline)" }); // -fno-inline
+                scope String[] ( "No", "Yes (-fno-inline)" )); // -fno-inline
             AddPropertiesItem(category, "Strict Aliasing", "mCOptions.mStrictAliasing",
             AddPropertiesItem(category, "Strict Aliasing", "mCOptions.mStrictAliasing",
-                scope String[] { "No", "Yes (-fstrict-aliasing)" }); // -fstrict-aliasing
+                scope String[] ( "No", "Yes (-fstrict-aliasing)" )); // -fstrict-aliasing
             AddPropertiesItem(category, "Fast Math", "mCOptions.mFastMath",
             AddPropertiesItem(category, "Fast Math", "mCOptions.mFastMath",
-                scope String[] { "No", "Yes (-ffast-math)" }); // -ffast-math
+                scope String[] ( "No", "Yes (-ffast-math)" )); // -ffast-math
             AddPropertiesItem(category, "Disable RTTI", "mCOptions.mDisableRTTI",
             AddPropertiesItem(category, "Disable RTTI", "mCOptions.mDisableRTTI",
-                scope String[] { "No", "Yes (-fno-rtti)" }); // -fno-rtti
+                scope String[] ( "No", "Yes (-fno-rtti)" )); // -fno-rtti
             AddPropertiesItem(category, "Optimization Level", "mCOptions.mOptimizationLevel"); // -O0 .. -O3,  -Os, -Ofast, -Og
             AddPropertiesItem(category, "Optimization Level", "mCOptions.mOptimizationLevel"); // -O0 .. -O3,  -Os, -Ofast, -Og
             AddPropertiesItem(category, "Debug Info", "mCOptions.mEmitDebugInfo",
             AddPropertiesItem(category, "Debug Info", "mCOptions.mEmitDebugInfo",
-                scope String[] { "None", "DWARF (-g)" });
+                scope String[] ( "None", "DWARF (-g)" ));
             AddPropertiesItem(category, "Address Sanitizer", "");
             AddPropertiesItem(category, "Address Sanitizer", "");
             category.Open(true, true);
             category.Open(true, true);
 
 
@@ -882,17 +882,17 @@ namespace IDE.ui
             category.mIsBold = true;
             category.mIsBold = true;
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             AddPropertiesItem(category, "All warnings", "mCOptions.mAllWarnings",
             AddPropertiesItem(category, "All warnings", "mCOptions.mAllWarnings",
-                scope String[] { "No", "Yes (-Wall)" }); // -Wall
+                scope String[] ( "No", "Yes (-Wall)" )); // -Wall
             AddPropertiesItem(category, "Effective C++ Violations", "mCOptions.mEffectiveCPPViolations",
             AddPropertiesItem(category, "Effective C++ Violations", "mCOptions.mEffectiveCPPViolations",
-                scope String[] { "No", "Yes (-Weffc++)" }); //-Weffc++
+                scope String[] ( "No", "Yes (-Weffc++)" )); //-Weffc++
             AddPropertiesItem(category, "Pedantic", "mCOptions.mPedantic",
             AddPropertiesItem(category, "Pedantic", "mCOptions.mPedantic",
-                scope String[] { "No", "Yes (-pedantic)" }); //-pedantic
+                scope String[] ( "No", "Yes (-pedantic)" )); //-pedantic
             AddPropertiesItem(category, "Warnings as errors", "mCOptions.mWarningsAsErrors",
             AddPropertiesItem(category, "Warnings as errors", "mCOptions.mWarningsAsErrors",
-                scope String[] { "No", "Yes (-Werror)" });  //-Werror
+                scope String[] ( "No", "Yes (-Werror)" ));  //-Werror
             AddPropertiesItem(category, "Specific Warnings As Errors", "",
             AddPropertiesItem(category, "Specific Warnings As Errors", "",
-                scope String[] { "No", "Yes (-Werror=)" }); // -Werror=
+                scope String[] ( "No", "Yes (-Werror=)" )); // -Werror=
             AddPropertiesItem(category, "Disable Specific Warnings", "",
             AddPropertiesItem(category, "Disable Specific Warnings", "",
-                scope String[] { "No", "Yes (-Wno-)" }); //-Wno-
+                scope String[] ( "No", "Yes (-Wno-)" )); //-Wno-
             category.Open(true, true);
             category.Open(true, true);
         }
         }
 
 

+ 1 - 1
IDE/src/ui/PropertiesDialog.bf

@@ -1919,7 +1919,7 @@ namespace IDE.ui
 
 
 			    if ((fieldType == typeof(bool)) && (useOptionValues == null))
 			    if ((fieldType == typeof(bool)) && (useOptionValues == null))
 			    {
 			    {
-			        propEntry.mOptionValues = new String[] { new String("No"), new String("Yes") };
+			        propEntry.mOptionValues = new String[] ( new String("No"), new String("Yes") );
 			    }
 			    }
 
 
 				if (fieldType.IsNullable)
 				if (fieldType.IsNullable)

+ 2 - 2
IDE/src/ui/SourceEditWidgetContent.bf

@@ -194,7 +194,7 @@ namespace IDE.ui
 		public bool mIgnoreKeyChar; // This fixes cases where a KeyDown changes focus to us but then we get a KeyChar that doesn't belong to us
 		public bool mIgnoreKeyChar; // This fixes cases where a KeyDown changes focus to us but then we get a KeyChar that doesn't belong to us
 		public bool mIgnoreSetHistory;
 		public bool mIgnoreSetHistory;
         public static uint32[] sTextColors = new uint32[]
         public static uint32[] sTextColors = new uint32[]
-            {
+            (
                 0xFFFFFFFF, // Normal
                 0xFFFFFFFF, // Normal
                 0xFFE1AE9A, // Keyword
                 0xFFE1AE9A, // Keyword
                 0XFFC8A0FF, // Literal
                 0XFFC8A0FF, // Literal
@@ -215,7 +215,7 @@ namespace IDE.ui
 				0xFFFFFF80, // BuildWarning
 				0xFFFFFF80, // BuildWarning
 
 
 				0xFF9090C0, // VisibleWhiteSpace
 				0xFF9090C0, // VisibleWhiteSpace
-            } ~ delete _;
+            ) ~ delete _;
 		bool mHasCustomColors;
 		bool mHasCustomColors;
 		FastCursorState mFastCursorState ~ delete _;
 		FastCursorState mFastCursorState ~ delete _;
 
 

+ 7 - 7
IDE/src/ui/WorkspaceProperties.bf

@@ -777,7 +777,7 @@ namespace IDE.ui
 			allocPropEntry.mOnUpdate();
 			allocPropEntry.mOnUpdate();
             AddPropertiesItem(category, "SIMD Instructions", "mBfSIMDSetting");
             AddPropertiesItem(category, "SIMD Instructions", "mBfSIMDSetting");
             AddPropertiesItem(category, "Optimization Level", "mBfOptimizationLevel",
             AddPropertiesItem(category, "Optimization Level", "mBfOptimizationLevel",
-                scope String[] { "O0", "O1", "O2", "O3", "Og", "Og+"});
+                scope String[] ( "O0", "O1", "O2", "O3", "Og", "Og+"));
 			AddPropertiesItem(category, "LTO Type", "mLTOType");
 			AddPropertiesItem(category, "LTO Type", "mLTOType");
             AddPropertiesItem(category, "No Omit Frame Pointers", "mNoOmitFramePointers");
             AddPropertiesItem(category, "No Omit Frame Pointers", "mNoOmitFramePointers");
 			AddPropertiesItem(category, "Large Strings", "mLargeStrings");
 			AddPropertiesItem(category, "Large Strings", "mLargeStrings");
@@ -789,17 +789,17 @@ namespace IDE.ui
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
             AddPropertiesItem(category, "Debug Info", "mEmitDebugInfo");
             AddPropertiesItem(category, "Debug Info", "mEmitDebugInfo");
             AddPropertiesItem(category, "Runtime Checks", "mRuntimeChecks",
             AddPropertiesItem(category, "Runtime Checks", "mRuntimeChecks",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
             AddPropertiesItem(category, "Dynamic Cast Check", "mEmitDynamicCastCheck",
             AddPropertiesItem(category, "Dynamic Cast Check", "mEmitDynamicCastCheck",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
             AddPropertiesItem(category, "Object Debug Flags", "mEnableObjectDebugFlags",
             AddPropertiesItem(category, "Object Debug Flags", "mEnableObjectDebugFlags",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
             AddPropertiesItem(category, "Object Access Check", "mEmitObjectAccessCheck",
             AddPropertiesItem(category, "Object Access Check", "mEmitObjectAccessCheck",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
             AddPropertiesItem(category, "Realtime Leak Check", "mEnableRealtimeLeakCheck",
             AddPropertiesItem(category, "Realtime Leak Check", "mEnableRealtimeLeakCheck",
-                scope String[] { "No", "Yes" });
+                scope String[] ( "No", "Yes" ));
 			AddPropertiesItem(category, "Enable Hot Compilation", "mAllowHotSwapping",
 			AddPropertiesItem(category, "Enable Hot Compilation", "mAllowHotSwapping",
-				scope String[] { "No", "Yes" });
+				scope String[] ( "No", "Yes" ));
 			AddPropertiesItem(category, "Alloc Stack Trace Depth", "mAllocStackTraceDepth");
 			AddPropertiesItem(category, "Alloc Stack Trace Depth", "mAllocStackTraceDepth");
             category.Open(true, true);
             category.Open(true, true);