Browse Source

Fix nullable stuff

amwx 2 years ago
parent
commit
b5be1ef9b0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Avalonia.Controls/SplitView/SplitView.cs

+ 4 - 4
src/Avalonia.Controls/SplitView/SplitView.cs

@@ -136,9 +136,9 @@ namespace Avalonia.Controls
 
         private Panel? _pane;
         private IDisposable? _pointerDisposable;
-        private SplitViewTemplateSettings _templateSettings;
-        private string _lastDisplayModePseudoclass;
-        private string _lastPlacementPseudoclass;
+        private SplitViewTemplateSettings _templateSettings = null!;
+        private string? _lastDisplayModePseudoclass;
+        private string? _lastPlacementPseudoclass;
 
         public SplitView()
         {
@@ -575,7 +575,7 @@ namespace Avalonia.Controls
             }
         }
 
-        private void TopLevelBackRequested(object sender, RoutedEventArgs e)
+        private void TopLevelBackRequested(object? sender, RoutedEventArgs e)
         {
             if (!IsInOverlayMode())
                 return;