summaryrefslogtreecommitdiff
path: root/src/FatalException.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-09-13 00:07:21 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-09-13 00:07:21 +0900
commit2807258279d8ddbef01ca1c20a87c14aa084620c (patch)
treee0baa98d1b2051898a4dbde0820ed81e6438fec4 /src/FatalException.cc
parentbee7a8317c602a37066a7b3391b5134f31e3a5ff (diff)
Use std::make_shared and make_unique where possible, part 1
Diffstat (limited to 'src/FatalException.cc')
-rw-r--r--src/FatalException.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/FatalException.cc b/src/FatalException.cc
index 7d545599..e2b68d89 100644
--- a/src/FatalException.cc
+++ b/src/FatalException.cc
@@ -38,8 +38,7 @@ namespace aria2 {
std::shared_ptr<Exception> FatalException::copy() const
{
- std::shared_ptr<Exception> e(new FatalException(*this));
- return e;
+ return std::make_shared<FatalException>(*this);
}
FatalException::FatalException