From 0a2c565aa98fa7bc9623a753370e565fc5ed1e63 Mon Sep 17 00:00:00 2001 From: Christopher Bergqvist Date: Thu, 11 Jun 2020 18:02:28 +0200 Subject: Switch from auto_ptr to unique_ptr (#638) --- src/Main/Forms/MainFrame.cpp | 2 +- src/Main/Forms/MainFrame.h | 4 ++-- src/Main/Forms/PreferencesDialog.h | 2 +- src/Main/Forms/ProgressWizardPage.h | 2 +- src/Main/Forms/VolumeCreationProgressWizardPage.h | 2 +- src/Main/Forms/VolumeCreationWizard.h | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Main/Forms') diff --git a/src/Main/Forms/MainFrame.cpp b/src/Main/Forms/MainFrame.cpp index 25853193..417c2a63 100644 --- a/src/Main/Forms/MainFrame.cpp +++ b/src/Main/Forms/MainFrame.cpp @@ -509,7 +509,7 @@ namespace VeraCrypt wxMenu *CreatePopupMenu () { - auto_ptr popup (new wxMenu); + unique_ptr popup (new wxMenu); Gui->AppendToMenu (*popup, LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"], this, wxCommandEventHandler (TaskBarIcon::OnShowHideMenuItemSelected)); diff --git a/src/Main/Forms/MainFrame.h b/src/Main/Forms/MainFrame.h index 414ecca3..9089ce72 100644 --- a/src/Main/Forms/MainFrame.h +++ b/src/Main/Forms/MainFrame.h @@ -214,8 +214,8 @@ namespace VeraCrypt map FavoriteVolumesMenuMap; bool ListItemRightClickEventPending; VolumeInfoList MountedVolumes; - auto_ptr mTaskBarIcon; - auto_ptr mTimer; + unique_ptr mTaskBarIcon; + unique_ptr mTimer; long SelectedItemIndex; VolumeSlotNumber SelectedSlotNumber; int ShowRequestFifo; diff --git a/src/Main/Forms/PreferencesDialog.h b/src/Main/Forms/PreferencesDialog.h index 25a0f85f..0cd1482a 100644 --- a/src/Main/Forms/PreferencesDialog.h +++ b/src/Main/Forms/PreferencesDialog.h @@ -54,7 +54,7 @@ namespace VeraCrypt KeyfilesPanel *DefaultKeyfilesPanel; int LastVirtualKeyPressed; - auto_ptr mTimer; + unique_ptr mTimer; UserPreferences Preferences; bool RestoreValidatorBell; HotkeyList UnregisteredHotkeys; diff --git a/src/Main/Forms/ProgressWizardPage.h b/src/Main/Forms/ProgressWizardPage.h index cc50fa62..34f5cf4d 100644 --- a/src/Main/Forms/ProgressWizardPage.h +++ b/src/Main/Forms/ProgressWizardPage.h @@ -36,7 +36,7 @@ namespace VeraCrypt void OnAbortButtonClick (wxCommandEvent& event); void OnTimer (); - auto_ptr mTimer; + unique_ptr mTimer; int PreviousGaugeValue; uint64 ProgressBarRange; int RealProgressBarRange; diff --git a/src/Main/Forms/VolumeCreationProgressWizardPage.h b/src/Main/Forms/VolumeCreationProgressWizardPage.h index 345ee593..fad4ac93 100644 --- a/src/Main/Forms/VolumeCreationProgressWizardPage.h +++ b/src/Main/Forms/VolumeCreationProgressWizardPage.h @@ -48,7 +48,7 @@ namespace VeraCrypt int PreviousGaugeValue; uint64 ProgressBarRange; - auto_ptr RandomPoolTimer; + unique_ptr RandomPoolTimer; int RealProgressBarRange; wxLongLong StartTime; bool VolumeCreatorRunning; diff --git a/src/Main/Forms/VolumeCreationWizard.h b/src/Main/Forms/VolumeCreationWizard.h index c4087426..70abc9ef 100644 --- a/src/Main/Forms/VolumeCreationWizard.h +++ b/src/Main/Forms/VolumeCreationWizard.h @@ -67,8 +67,8 @@ namespace VeraCrypt bool CrossPlatformSupport; static bool DeviceWarningConfirmed; bool DisplayKeyInfo; - auto_ptr ProgressTimer; - auto_ptr RandomPoolUpdateTimer; + unique_ptr ProgressTimer; + unique_ptr RandomPoolUpdateTimer; shared_ptr Keyfiles; bool LargeFilesSupport; uint64 MaxHiddenVolumeSize; -- cgit v1.2.3