78 |
// Constructor. |
// Constructor. |
79 |
qsamplerApplication::qsamplerApplication ( int& argc, char **argv ) |
qsamplerApplication::qsamplerApplication ( int& argc, char **argv ) |
80 |
: QApplication(argc, argv), |
: QApplication(argc, argv), |
81 |
m_pQtTranslator(NULL), m_pMyTranslator(NULL), m_pWidget(NULL) |
m_pQtTranslator(nullptr), m_pMyTranslator(nullptr), m_pWidget(nullptr) |
82 |
{ |
{ |
83 |
// Load translation support. |
// Load translation support. |
84 |
QLocale loc; |
QLocale loc; |
136 |
#ifdef CONFIG_XUNIQUE |
#ifdef CONFIG_XUNIQUE |
137 |
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
138 |
#ifdef CONFIG_X11 |
#ifdef CONFIG_X11 |
139 |
m_pDisplay = NULL; |
m_pDisplay = nullptr; |
140 |
m_aUnique = 0; |
m_aUnique = 0; |
141 |
m_wOwner = 0; |
m_wOwner = 0; |
142 |
#endif // CONFIG_X11 |
#endif // CONFIG_X11 |
143 |
#else |
#else |
144 |
m_pMemory = NULL; |
m_pMemory = nullptr; |
145 |
m_pServer = NULL; |
m_pServer = nullptr; |
146 |
#endif |
#endif |
147 |
#endif // CONFIG_XUNIQUE |
#endif // CONFIG_XUNIQUE |
148 |
} |
} |
156 |
if (m_pServer) { |
if (m_pServer) { |
157 |
m_pServer->close(); |
m_pServer->close(); |
158 |
delete m_pServer; |
delete m_pServer; |
159 |
m_pServer = NULL; |
m_pServer = nullptr; |
160 |
} |
} |
161 |
if (m_pMemory) { |
if (m_pMemory) { |
162 |
delete m_pMemory; |
delete m_pMemory; |
163 |
m_pMemory = NULL; |
m_pMemory = nullptr; |
164 |
} |
} |
165 |
#endif |
#endif |
166 |
#endif // CONFIG_XUNIQUE |
#endif // CONFIG_XUNIQUE |
421 |
|
|
422 |
// Fork child... |
// Fork child... |
423 |
if (pid == 0) { |
if (pid == 0) { |
424 |
execl(shell, shell, "-c", cmd, NULL); |
execl(shell, shell, "-c", cmd, nullptr); |
425 |
_exit(1); |
_exit(1); |
426 |
return; |
return; |
427 |
} |
} |