From 38140372d8c8dd32267943d5d79b2ce2c0a032fb Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 31 Oct 2017 15:01:57 +0100 Subject: Use std::make_unique --- src/poll_looper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/poll_looper.cc') 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::create() { + return std::make_unique(); } -- cgit v1.3