summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tag_compound.cpp4
-rw-r--r--src/tag_list.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp
index 48f4f42239..d3eaf06440 100644
--- a/src/tag_compound.cpp
+++ b/src/tag_compound.cpp
@@ -43,7 +43,7 @@ value& tag_compound::operator[](const std::string& key)
return tags[key];
}
-std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key, value&& val)
+std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key, value_initializer&& val)
{
auto it = tags.find(key);
if(it != tags.end())
@@ -57,7 +57,7 @@ std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key
}
}
-std::pair<tag_compound::iterator, bool> tag_compound::insert(const std::string& key, value&& val)
+std::pair<tag_compound::iterator, bool> tag_compound::insert(const std::string& key, value_initializer&& val)
{
return tags.emplace(key, std::move(val));
}
diff --git a/src/tag_list.cpp b/src/tag_list.cpp
index b483819405..1d930b4f92 100644
--- a/src/tag_list.cpp
+++ b/src/tag_list.cpp
@@ -79,14 +79,14 @@ const value& tag_list::operator[](size_t i) const
return tags[i];
}
-void tag_list::set(size_t i, value&& val)
+void tag_list::set(size_t i, value_initializer&& val)
{
if(val.get_type() != el_type_)
throw std::bad_cast();
tags.at(i) = std::move(val);
}
-void tag_list::push_back(value&& val)
+void tag_list::push_back(value_initializer&& val)
{
if(!val) //don't allow null values
throw std::bad_cast();