forked from qt-creator/qt-creator
UpdateInfo: Modernize
modernize-* Change-Id: I1cc383cc9422d0635ba794b7f8de011261da6728 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -65,13 +65,10 @@ namespace Internal {
|
||||
class UpdateInfoPluginPrivate
|
||||
{
|
||||
public:
|
||||
UpdateInfoPluginPrivate()
|
||||
{ }
|
||||
|
||||
QString m_maintenanceTool;
|
||||
QPointer<ShellCommand> m_checkUpdatesCommand;
|
||||
QString m_collectedOutput;
|
||||
QTimer *m_checkUpdatesTimer = 0;
|
||||
QTimer *m_checkUpdatesTimer = nullptr;
|
||||
|
||||
bool m_automaticCheck = true;
|
||||
UpdateInfoPlugin::CheckUpdateInterval m_checkInterval = UpdateInfoPlugin::WeeklyCheck;
|
||||
@@ -145,7 +142,7 @@ void UpdateInfoPlugin::stopCheckForUpdates()
|
||||
d->m_collectedOutput.clear();
|
||||
d->m_checkUpdatesCommand->disconnect();
|
||||
d->m_checkUpdatesCommand->cancel();
|
||||
d->m_checkUpdatesCommand = 0;
|
||||
d->m_checkUpdatesCommand = nullptr;
|
||||
emit checkForUpdatesRunningChanged(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user