Changeset 222 in pacpusframework for trunk/src/PacpusLib
- Timestamp:
- Nov 14, 2013, 9:21:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/PacpusApplication.cpp
r215 r222 22 22 DECLARE_STATIC_LOGGER("pacpus.core.PacpusApplication"); 23 23 24 PacpusApplication::PacpusApplication(int & argc, char** argv24 PacpusApplication::PacpusApplication(int& argc, char** argv 25 25 #ifndef Q_QDOC 26 , int _internal26 , int _internal 27 27 #endif 28 )28 ) 29 29 : QApplication(argc, argv, _internal) 30 30 { … … 32 32 } 33 33 34 //PacpusApplication::PacpusApplication(int & argc, char** argv, bool GUIenabled34 //PacpusApplication::PacpusApplication(int& argc, char** argv, bool GUIenabled 35 35 //#ifndef Q_QDOC 36 // , int _internal36 // , int _internal 37 37 //#endif 38 // )38 // ) 39 39 // : QApplication(argc, argv, GUIenabled, _internal) 40 40 //{ 41 41 //} 42 42 43 //PacpusApplication::PacpusApplication(int & argc, char** argv, Type type43 //PacpusApplication::PacpusApplication(int& argc, char** argv, Type type 44 44 //#ifndef Q_QDOC 45 // , int _internal45 // , int _internal 46 46 //#endif 47 // )47 // ) 48 48 // : QApplication(argc, argv, type, _internal) 49 49 //{ … … 51 51 52 52 #if defined(Q_WS_X11) 53 PacpusApplication::PacpusApplication(Display 53 PacpusApplication::PacpusApplication(Display* display, Qt::HANDLE visual, Qt::HANDLE colormap 54 54 #ifndef Q_QDOC 55 , int _internal55 , int _internal 56 56 #endif 57 )57 ) 58 58 : QApplication(display, visual, colormap, _internal) 59 59 { 60 60 } 61 61 62 PacpusApplication::PacpusApplication(Display * display, int & argc, char ** argv, Qt::HANDLE visual, Qt::HANDLE colormap62 PacpusApplication::PacpusApplication(Display* display, int& argc, char** argv, Qt::HANDLE visual, Qt::HANDLE colormap 63 63 #ifndef Q_QDOC 64 , int _internal64 , int _internal 65 65 #endif 66 )66 ) 67 67 : QApplication(display, argc, argv, visual, colormap, _internal) 68 68 { … … 71 71 72 72 #if defined(Q_OS_SYMBIAN) 73 PacpusApplication::PacpusApplication(QApplication::QS60MainApplicationFactory factory, int & argc, char** argv73 PacpusApplication::PacpusApplication(QApplication::QS60MainApplicationFactory factory, int& argc, char** argv 74 74 #ifndef Q_QDOC 75 , int _internal75 , int _internal 76 76 #endif 77 )77 ) 78 78 : QApplication(factory, argc, argv, _internal) 79 79 { … … 85 85 } 86 86 87 bool PacpusApplication::notify(QObject * receiver, QEvent* ev)87 bool PacpusApplication::notify(QObject* receiver, QEvent* ev) 88 88 { 89 89 try { 90 90 return QApplication::notify(receiver, ev); 91 } catch (PacpusException & e) {92 (void) 91 } catch (PacpusException & e) { 92 (void)e; // unused 93 93 LOG_ERROR("PacpusException thrown:" << e.what()); 94 } catch (boost::exception & e) {95 (void) 94 } catch (boost::exception & e) { 95 (void)e; // unused 96 96 LOG_ERROR("boost::exception thrown:" << boost::diagnostic_information(e)); 97 } catch (std::exception & e) {98 (void) 97 } catch (std::exception & e) { 98 (void)e; // unused 99 99 LOG_ERROR("std::exception thrown:" << e.what()); 100 100 }
Note:
See TracChangeset
for help on using the changeset viewer.