diff options
| author | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@opera.com> | 2017-10-31 15:01:57 +0100 |
| commit | 38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch) | |
| tree | 0e2555e591092f934e05451ef4a6df18c5ddc739 /src/poll_looper.cc | |
| parent | 2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff) | |
Use std::make_unique
Diffstat (limited to 'src/poll_looper.cc')
| -rw-r--r-- | src/poll_looper.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poll_looper.cc b/src/poll_looper.cc index 71788e0..5d689ea 100644 --- a/src/poll_looper.cc +++ b/src/poll_looper.cc @@ -244,6 +244,6 @@ private: } // namespace // static -PollLooper* PollLooper::create() { - return new PollLooperImpl(); +std::unique_ptr<PollLooper> PollLooper::create() { + return std::make_unique<PollLooperImpl>(); } |
