Browse Source

haxe 4.1 warnings

Nicolas Cannasse 4 years ago
parent
commit
2e78788cc5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      hide/view/FXEditor.hx
  2. 1 1
      hrt/prefab/Blur.hx

+ 1 - 1
hide/view/FXEditor.hx

@@ -425,7 +425,7 @@ class FXEditor extends FileView {
 			e.stopPropagation();
 		});
 
-		var wheelTimer : haxe.Timer;
+		var wheelTimer : haxe.Timer = null;
 		timeline.on("mousewheel", function(e) {
 			var step = e.originalEvent.wheelDelta > 0 ? 1.0 : -1.0;
 			xScale *= Math.pow(1.125, step);

+ 1 - 1
hrt/prefab/Blur.hx

@@ -84,7 +84,7 @@ class Blur extends Prefab {
 	}
 
 	override function edit( ctx : EditContext ) {
-		var e : hide.Element;
+		var e : hide.Element = null;
 		function sync( bmp : h2d.Bitmap ) {
 			var k = @:privateAccess Std.downcast(bmp.filter, h2d.filter.Blur).pass.getKernelSize();
 			e.find("[name=fetches]").text( (k + k) +"x" );