summaryrefslogtreecommitdiff
path: root/src/args.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
committerJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
commit38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch)
tree0e2555e591092f934e05451ef4a6df18c5ddc739 /src/args.hh
parent2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff)
Use std::make_unique
Diffstat (limited to 'src/args.hh')
-rw-r--r--src/args.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/args.hh b/src/args.hh
index 7f6d94b..6490182 100644
--- a/src/args.hh
+++ b/src/args.hh
@@ -2,6 +2,7 @@
#define ARGS_HH
#include <iostream>
+#include <memory>
#include <string>
#include <vector>
@@ -9,7 +10,7 @@ class Args {
public:
virtual ~Args() {}
- static Args* create();
+ static std::unique_ptr<Args> create();
virtual void add(char short_opt, std::string const& long_opt,
std::string const& argument, std::string const& help) = 0;