Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
[Gtk] Code improvements
Browse files Browse the repository at this point in the history
Co-Authored-By: Marius Ungureanu <[email protected]>
  • Loading branch information
sevoku and Therzok committed Dec 18, 2019
1 parent 9e18300 commit 3427746
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Xwt.Gtk/Xwt.GtkBackend/ComboBoxEntryBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public bool Completes
{
get
{
if (Widget?.Model == null)
if (Widget.Model == null)
return completes;
return entryBackend.TextEntry?.Completion?.Model == Widget.Model;
}
Expand Down Expand Up @@ -120,7 +120,7 @@ class CustomComboEntryBackend: TextEntryBackend
{
public CustomComboEntryBackend (Gtk.Entry entry)
{
Widget = entry;
Widget = entry ?? throw new ArgumentNullException (nameof (entry));
}

public override void Initialize ()
Expand All @@ -129,4 +129,3 @@ public override void Initialize ()
}
}
}

0 comments on commit 3427746

Please sign in to comment.