mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Switch from auto_ptr to unique_ptr (#638)
This commit is contained in:
committed by
GitHub
parent
8250e83e61
commit
0a2c565aa9
@@ -509,7 +509,7 @@ namespace VeraCrypt
|
||||
|
||||
wxMenu *CreatePopupMenu ()
|
||||
{
|
||||
auto_ptr <wxMenu> popup (new wxMenu);
|
||||
unique_ptr <wxMenu> popup (new wxMenu);
|
||||
|
||||
Gui->AppendToMenu (*popup, LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"], this, wxCommandEventHandler (TaskBarIcon::OnShowHideMenuItemSelected));
|
||||
|
||||
|
||||
@@ -214,8 +214,8 @@ namespace VeraCrypt
|
||||
map <int, FavoriteVolume> FavoriteVolumesMenuMap;
|
||||
bool ListItemRightClickEventPending;
|
||||
VolumeInfoList MountedVolumes;
|
||||
auto_ptr <wxTaskBarIcon> mTaskBarIcon;
|
||||
auto_ptr <wxTimer> mTimer;
|
||||
unique_ptr <wxTaskBarIcon> mTaskBarIcon;
|
||||
unique_ptr <wxTimer> mTimer;
|
||||
long SelectedItemIndex;
|
||||
VolumeSlotNumber SelectedSlotNumber;
|
||||
int ShowRequestFifo;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace VeraCrypt
|
||||
|
||||
KeyfilesPanel *DefaultKeyfilesPanel;
|
||||
int LastVirtualKeyPressed;
|
||||
auto_ptr <wxTimer> mTimer;
|
||||
unique_ptr <wxTimer> mTimer;
|
||||
UserPreferences Preferences;
|
||||
bool RestoreValidatorBell;
|
||||
HotkeyList UnregisteredHotkeys;
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace VeraCrypt
|
||||
void OnAbortButtonClick (wxCommandEvent& event);
|
||||
void OnTimer ();
|
||||
|
||||
auto_ptr <wxTimer> mTimer;
|
||||
unique_ptr <wxTimer> mTimer;
|
||||
int PreviousGaugeValue;
|
||||
uint64 ProgressBarRange;
|
||||
int RealProgressBarRange;
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace VeraCrypt
|
||||
|
||||
int PreviousGaugeValue;
|
||||
uint64 ProgressBarRange;
|
||||
auto_ptr <wxTimer> RandomPoolTimer;
|
||||
unique_ptr <wxTimer> RandomPoolTimer;
|
||||
int RealProgressBarRange;
|
||||
wxLongLong StartTime;
|
||||
bool VolumeCreatorRunning;
|
||||
|
||||
@@ -67,8 +67,8 @@ namespace VeraCrypt
|
||||
bool CrossPlatformSupport;
|
||||
static bool DeviceWarningConfirmed;
|
||||
bool DisplayKeyInfo;
|
||||
auto_ptr <wxTimer> ProgressTimer;
|
||||
auto_ptr <wxTimer> RandomPoolUpdateTimer;
|
||||
unique_ptr <wxTimer> ProgressTimer;
|
||||
unique_ptr <wxTimer> RandomPoolUpdateTimer;
|
||||
shared_ptr <KeyfileList> Keyfiles;
|
||||
bool LargeFilesSupport;
|
||||
uint64 MaxHiddenVolumeSize;
|
||||
|
||||
Reference in New Issue
Block a user