mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Initialize pointer to a default value
This commit is contained in:
@@ -219,9 +219,9 @@ private:
|
||||
void showStatusBar(bool show);
|
||||
void showFiltersSidebar(bool show);
|
||||
|
||||
Ui::MainWindow *m_ui;
|
||||
Ui::MainWindow *m_ui = nullptr;
|
||||
|
||||
QFileSystemWatcher *m_executableWatcher;
|
||||
QFileSystemWatcher *m_executableWatcher = nullptr;
|
||||
// GUI related
|
||||
bool m_posInitialized = false;
|
||||
QPointer<QTabWidget> m_tabs;
|
||||
@@ -237,27 +237,27 @@ private:
|
||||
#endif
|
||||
QPointer<QMenu> m_trayIconMenu;
|
||||
|
||||
TransferListWidget *m_transferListWidget;
|
||||
TransferListWidget *m_transferListWidget = nullptr;
|
||||
TransferListFiltersWidget *m_transferListFiltersWidget = nullptr;
|
||||
PropertiesWidget *m_propertiesWidget;
|
||||
bool m_displaySpeedInTitle;
|
||||
PropertiesWidget *m_propertiesWidget = nullptr;
|
||||
bool m_displaySpeedInTitle = false;
|
||||
bool m_forceExit = false;
|
||||
bool m_uiLocked;
|
||||
bool m_uiLocked = false;
|
||||
bool m_unlockDlgShowing = false;
|
||||
LineEdit *m_searchFilter;
|
||||
QAction *m_searchFilterAction;
|
||||
LineEdit *m_searchFilter = nullptr;
|
||||
QAction *m_searchFilterAction = nullptr;
|
||||
// Widgets
|
||||
QAction *m_queueSeparator;
|
||||
QAction *m_queueSeparatorMenu;
|
||||
QSplitter *m_splitter;
|
||||
QAction *m_queueSeparator = nullptr;
|
||||
QAction *m_queueSeparatorMenu = nullptr;
|
||||
QSplitter *m_splitter = nullptr;
|
||||
QPointer<SearchWidget> m_searchWidget;
|
||||
QPointer<RSSWidget> m_rssWidget;
|
||||
QPointer<ExecutionLogWidget> m_executionLog;
|
||||
// Power Management
|
||||
PowerManagement *m_pwr;
|
||||
QTimer *m_preventTimer;
|
||||
PowerManagement *m_pwr = nullptr;
|
||||
QTimer *m_preventTimer = nullptr;
|
||||
bool m_hasPython = false;
|
||||
QMenu *m_toolbarMenu;
|
||||
QMenu *m_toolbarMenu = nullptr;
|
||||
|
||||
SettingValue<bool> m_storeExecutionLogEnabled;
|
||||
SettingValue<bool> m_storeDownloadTrackerFavicon;
|
||||
|
||||
Reference in New Issue
Block a user