Commit dbf151fe authored by Povilas Kanapickas's avatar Povilas Kanapickas
Browse files

Replace deprecated std::auto_ptr with std::unique_ptr

parent 0dadb4b8
......@@ -129,7 +129,7 @@ class Device {
private:
struct Private;
std::auto_ptr<Private> d_;
std::unique_ptr<Private> d_;
/* Disable copy constructor & assignment operator */
Device(const Device&);
......
......@@ -221,7 +221,7 @@ class Environment : public ::testing::Environment {
private:
struct Private;
std::auto_ptr<Private> d_;
std::unique_ptr<Private> d_;
/* Disable copy constructor & assignment operator */
Environment(const Environment&);
......
......@@ -111,6 +111,8 @@ class Process {
*/
Process();
~Process();
/**
* Fork manually. Usually, fork() is called as part of Start() but for
* use-cases where the parent process and the child process need special
......@@ -238,7 +240,7 @@ class Process {
private:
struct Private;
std::auto_ptr<Private> d_;
std::unique_ptr<Private> d_;
/* Disable copy constructor, assignment operator */
Process(const Process&);
......
......@@ -101,7 +101,7 @@ class Test : public ::testing::Test {
/** @cond Implementation */
struct Private;
std::auto_ptr<Private> d_;
std::unique_ptr<Private> d_;
/** @endcond Implementation */
private:
/* Disable copy c'tor, assignment operator */
......
......@@ -280,7 +280,7 @@ class XServer : public xorg::testing::Process {
private:
struct Private;
std::auto_ptr<Private> d_;
std::unique_ptr<Private> d_;
/* Disable copy constructor, assignment operator */
XServer(const XServer&);
......
......@@ -51,6 +51,8 @@ xorg::testing::Process::Process() : d_(new Private) {
d_->state = NONE;
}
xorg::testing::Process::~Process() {}
enum xorg::testing::Process::State xorg::testing::Process::GetState() {
if (d_->state == RUNNING) {
int status;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment