use ReadOnlyArray where it makes sense
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package kernel.ui;
|
||||
|
||||
import haxe.ds.ReadOnlyArray;
|
||||
import kernel.ui.TermWriteable;
|
||||
import kernel.peripherals.Peripherals.Peripheral;
|
||||
|
||||
@@ -73,7 +74,7 @@ class WindowManager {
|
||||
return newContext;
|
||||
}
|
||||
|
||||
public function getOutputs():Array<String> {
|
||||
public function getOutputs():ReadOnlyArray<String> {
|
||||
var arr = Peripheral.instance.getScreens().map(screen -> return screen.getAddr());
|
||||
arr.push("main");
|
||||
return arr;
|
||||
|
||||
Reference in New Issue
Block a user