Switch from auto_ptr to unique_ptr (#638)

This commit is contained in:
Christopher Bergqvist authored and GitHub committed 2020-06-11 18:02:28 +02:00
1 parent 8250e83e61
commit 0a2c565aa9
29 files changed
+71 -73

No files matched your search

+6 -6
View File
@@ -39,17 +39,17 @@ namespace VeraCrypt
static void Stop ();
protected:
template <class T> static auto_ptr <T> GetResponse ();
template <class T> static auto_ptr <T> SendRequest (CoreServiceRequest &request);
template <class T> static unique_ptr <T> GetResponse ();
template <class T> static unique_ptr <T> SendRequest (CoreServiceRequest &request);
static void StartElevated (const CoreServiceRequest &request);
static shared_ptr <GetStringFunctor> AdminPasswordCallback;
static auto_ptr <Pipe> AdminInputPipe;
static auto_ptr <Pipe> AdminOutputPipe;
static unique_ptr <Pipe> AdminInputPipe;
static unique_ptr <Pipe> AdminOutputPipe;
static auto_ptr <Pipe> InputPipe;
static auto_ptr <Pipe> OutputPipe;
static unique_ptr <Pipe> InputPipe;
static unique_ptr <Pipe> OutputPipe;
static shared_ptr <Stream> ServiceInputStream;
static shared_ptr <Stream> ServiceOutputStream;