]> git.tdb.fi Git - libs/datafile.git/commitdiff
Update the tool to use the new RegisteredApplication class
authorMikko Rasa <tdb@tdb.fi>
Mon, 25 Jul 2011 14:24:22 +0000 (17:24 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 25 Jul 2011 14:24:22 +0000 (17:24 +0300)
tool/tool.cpp
tool/tool.h

index 570d85b14bcc6ca1382cf428a536ce81f1bb7490..4e6608766a8e7cbacb47900e337ba0c80436e6f6 100644 (file)
@@ -76,5 +76,3 @@ int DataTool::main()
 
        return 0;
 }
-
-Application::RegApp<DataTool> DataTool::reg;
index d10dc7d3187f6d4d73af8a6b574330b94359f05a..a43fbfbf02d30958fb54f3ea3a853803e4a84922 100644 (file)
@@ -4,7 +4,7 @@
 #include <string>
 #include <msp/core/application.h>
 
-class DataTool: public Msp::Application
+class DataTool: public Msp::RegisteredApplication<DataTool>
 {
 private:
        std::string in_fn;
@@ -15,8 +15,6 @@ private:
 public:
        DataTool(int argc, char **argv);
        int main();
-
-       static Application::RegApp<DataTool> reg;
 };
 
 #endif