From 77eb8fefec3e62ead95c7d409ec5a28f30289ec3 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 5 Dec 2010 02:56:08 +0000 Subject: Mopping up after the deprecation of exit and er... Mopping up after the deprecation of exit and error. It is decidedly non-trivial (at least for the IDE-impaired) to be completely sure of which error function was being called when there were about twenty with the same signature in trunk and they are being variously inherited, imported, shadowed, etc. So although I was careful, the possibility exists that something is now calling a different "error" function than before. Caveat programmer. (And let's all make it our policy not to name anything "error" or "exit" from here on out....) No review. --- src/swing/scala/swing/MainFrame.scala | 2 +- src/swing/scala/swing/SwingApplication.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/swing') diff --git a/src/swing/scala/swing/MainFrame.scala b/src/swing/scala/swing/MainFrame.scala index 4bc855d1c3..13c3aacbd0 100644 --- a/src/swing/scala/swing/MainFrame.scala +++ b/src/swing/scala/swing/MainFrame.scala @@ -17,5 +17,5 @@ import event._ * framework and quits the application when closed. */ class MainFrame extends Frame { - override def closeOperation { System.exit(0) } + override def closeOperation { system.exit(0) } } diff --git a/src/swing/scala/swing/SwingApplication.scala b/src/swing/scala/swing/SwingApplication.scala index e4a51ca5b3..02fd8dc737 100644 --- a/src/swing/scala/swing/SwingApplication.scala +++ b/src/swing/scala/swing/SwingApplication.scala @@ -4,6 +4,6 @@ abstract class SwingApplication extends Reactor { def main(args: Array[String]) = Swing.onEDT { startup(args) } def startup(args: Array[String]) - def quit() { shutdown(); System.exit(0) } + def quit() { shutdown(); system.exit(0) } def shutdown() {} } -- cgit v1.2.3