From 0dc47c7b9189f8b8995dc9e06b2d8cbd48dc6e40 Mon Sep 17 00:00:00 2001 From: cra0zy Date: Tue, 16 Jan 2018 15:15:21 +0100 Subject: [PATCH] [Templates] Replace warning ignoring with null setting --- .../content/GtkSharp.Application.CSharp/MainWindow.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs index e8f74a988..31a98b31c 100755 --- a/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs +++ b/Source/Templates/GtkSharp.Template.CSharp/content/GtkSharp.Application.CSharp/MainWindow.cs @@ -6,10 +6,8 @@ namespace GtkNamespace { class MainWindow : Window { -#pragma warning disable 0649 - [UI] private Label _label1; - [UI] private Button _button1; -#pragma warning restore 0649 + [UI] private Label _label1 = null; + [UI] private Button _button1 = null; private int _counter;