diff options
Diffstat (limited to 'src/tweet.cpp')
-rw-r--r-- | src/tweet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tweet.cpp b/src/tweet.cpp index 864bcd8..1c869f9 100644 --- a/src/tweet.cpp +++ b/src/tweet.cpp | |||
@@ -12,13 +12,13 @@ namespace twitter { | |||
12 | auto json = nlohmann::json::parse(data); | 12 | auto json = nlohmann::json::parse(data); |
13 | _id = json["id"].get<tweet_id>(); | 13 | _id = json["id"].get<tweet_id>(); |
14 | _text = json["text"].get<std::string>(); | 14 | _text = json["text"].get<std::string>(); |
15 | _author = make_unique<user>(json["user"].dump()); | 15 | _author = std::make_unique<user>(json["user"].dump()); |
16 | 16 | ||
17 | if (!json["retweeted_status"].is_null()) | 17 | if (!json["retweeted_status"].is_null()) |
18 | { | 18 | { |
19 | _is_retweet = true; | 19 | _is_retweet = true; |
20 | 20 | ||
21 | _retweeted_status = make_unique<tweet>(json["retweeted_status"].dump()); | 21 | _retweeted_status = std::make_unique<tweet>(json["retweeted_status"].dump()); |
22 | } | 22 | } |
23 | 23 | ||
24 | if (!json["entities"].is_null()) | 24 | if (!json["entities"].is_null()) |
@@ -45,12 +45,12 @@ namespace twitter { | |||
45 | _valid = other._valid; | 45 | _valid = other._valid; |
46 | _id = other._id; | 46 | _id = other._id; |
47 | _text = other._text; | 47 | _text = other._text; |
48 | _author = make_unique<user>(*other._author); | 48 | _author = std::make_unique<user>(*other._author); |
49 | _is_retweet = other._is_retweet; | 49 | _is_retweet = other._is_retweet; |
50 | 50 | ||
51 | if (_is_retweet) | 51 | if (_is_retweet) |
52 | { | 52 | { |
53 | _retweeted_status = make_unique<tweet>(*other._retweeted_status); | 53 | _retweeted_status = std::make_unique<tweet>(*other._retweeted_status); |
54 | } | 54 | } |
55 | 55 | ||
56 | _mentions = other._mentions; | 56 | _mentions = other._mentions; |