comparison DeDupe.cpp @ 9:b5943e4bf676

Fix up header includes. Introduce outer catch. Fix coding style. Remove spurious debug output.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 22 Aug 2012 18:48:07 +0200
parents 5e4985407feb
children 0114be0b5ad4
comparison
equal deleted inserted replaced
8:d7b384b4a834 9:b5943e4bf676
1 #include "DataController.hpp" 1 #include "DataController.hpp"
2 #include "Exception.hpp"
2 3
3 #include <QtGui/QApplication> 4 #include <QtGui/QApplication>
4 5
6 #include <iostream>
7
5 int main(int argc, char *argv[]) { 8 int main(int argc, char *argv[]) {
6 9
7 QApplication app(argc, argv); 10 try {
11 QApplication app(argc, argv);
8 12
9 DataController dc(true); 13 DataController dc(true);
10 14
11 return app.exec(); 15 return app.exec();
16 }
17 catch (Exception& e) {
18 std::cerr << "Unrecoverable error" << e.toString().toStdString();
19 exit(1);
20 }
21
12 } 22 }
13 23
14 24