aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_key.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 18:29:17 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 18:29:17 +0100
commitc3802f0aec7d89a518cf74145aa73bf2ea688e35 (patch)
tree9b6aab4b3d06e2e54afa10b2448af4f7819c6acd /paludis/repositories/e/e_key.cc
parent8ea8866114c450dec08322c57f8002b29eee19d3 (diff)
downloadpaludis-c3802f0aec7d89a518cf74145aa73bf2ea688e35.tar.gz
paludis-c3802f0aec7d89a518cf74145aa73bf2ea688e35.tar.xz
Avoid sptr.reset(new ...)
Diffstat (limited to 'paludis/repositories/e/e_key.cc')
-rw-r--r--paludis/repositories/e/e_key.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index 1e506994e..c567aff92 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -808,7 +808,7 @@ EKeywordsKey::value() const
if (_imp->value)
return _imp->value;
- _imp->value.reset(new KeywordNameSet);
+ _imp->value = std::make_shared<KeywordNameSet>();
Context context("When parsing metadata key '" + raw_name() + "' from '" + stringify(*_imp->id) + "':");
tokenise_whitespace(_imp->string_value, create_inserter<KeywordName>(_imp->value->inserter()));
return _imp->value;
@@ -897,7 +897,7 @@ EStringSetKey::value() const
if (_imp->value)
return _imp->value;
- _imp->value.reset(new Set<std::string>);
+ _imp->value = std::make_shared<Set<std::string>>();
Context context("When parsing metadata key '" + raw_name() + "' from '" + stringify(*_imp->id) + "':");
tokenise_whitespace(_imp->string_value, _imp->value->inserter());
return _imp->value;
@@ -982,7 +982,7 @@ EContentsKey::value() const
Context context("When creating contents for VDB key '" + stringify(*_imp->id) + "' from '" + stringify(_imp->filename) + "':");
- _imp->value.reset(new Contents);
+ _imp->value = std::make_shared<Contents>();
FSEntry f(_imp->filename);
if (! f.is_regular_file_or_symlink_to_regular_file())
@@ -1100,7 +1100,7 @@ EMTimeKey::value() const
if (_imp->value)
return *_imp->value;
- _imp->value.reset(new Timestamp(Timestamp::now()));
+ _imp->value = std::make_shared<Timestamp>(Timestamp::now());
try
{