/[svn]/qsampler/trunk/src/qsampler.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3520 by capela, Mon Jul 1 10:53:41 2019 UTC revision 3555 by capela, Tue Aug 13 10:19:32 2019 UTC
# Line 78  Line 78 
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;
# Line 136  qsamplerApplication::qsamplerApplication Line 136  qsamplerApplication::qsamplerApplication
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  }  }
# Line 156  qsamplerApplication::~qsamplerApplicatio Line 156  qsamplerApplication::~qsamplerApplicatio
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
# Line 421  void stacktrace ( int signo ) Line 421  void stacktrace ( int signo )
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          }          }

Legend:
Removed from v.3520  
changed lines
  Added in v.3555

  ViewVC Help
Powered by ViewVC