]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/remote.cpp
Some other minor UI tweaks
[r2c2.git] / source / remote / remote.cpp
index e5384777bf49ffaf5f52b21196483361e5088186..dbcb7e4a166de4f252658dc0aad7931b3360d7c0 100644 (file)
@@ -1,12 +1,6 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2009-2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <gtkmm/scrolledwindow.h>
 #include <gtkmm/separator.h>
+#include <msp/core/getopt.h>
 #include <msp/net/resolve.h>
 #include <msp/time/units.h>
 #include "mainpanel.h"
@@ -16,14 +10,12 @@ Distributed under the GPL
 using namespace std;
 using namespace Msp;
 
-Application::RegApp<Remote> Remote::reg;
-
 Remote::Remote(int argc, char **argv):
        client(catalogue),
        gtk(argc, argv)
 {
        if(argc<2)
-               throw UsageError("No address given");
+               throw usage_error("No address given");
 
        DataFile::load(catalogue, "locos.dat");