mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
Use QPointer when interesting
This commit is contained in:
parent
e21c28e9d2
commit
43dcbf776b
5 changed files with 28 additions and 28 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <QProcess>
|
||||
#include <QSystemTrayIcon>
|
||||
|
||||
#include <QPointer>
|
||||
#include "ui_MainWindow.h"
|
||||
#include "qtorrenthandle.h"
|
||||
|
||||
|
@ -66,7 +66,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
QTabWidget *tabs;
|
||||
options_imp *options;
|
||||
QSystemTrayIcon *myTrayIcon;
|
||||
QTimer *systrayCreator;
|
||||
QPointer<QTimer> systrayCreator;
|
||||
QMenu *myTrayIconMenu;
|
||||
DownloadingTorrents *downloadingTorrentTab;
|
||||
FinishedTorrents *finishedTorrentTab;
|
||||
|
@ -97,7 +97,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
|
|||
// RSS
|
||||
RSSImp *rssWidget;
|
||||
// Web UI
|
||||
HttpServer *httpServer;
|
||||
QPointer<HttpServer> httpServer;
|
||||
// Misc
|
||||
#ifdef QT_4_4
|
||||
QLocalServer *localServer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue