summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-18 21:20:44 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-18 21:20:44 +0200
commit3bab56d8f1e59d921ac7857e6747c7ecbab045f7 (patch)
treec79a293005c7bc43096b7356ef06b102c712d6da /src
parent26b61743aecdaf4ae81c15f8efa26e4ae3726673 (diff)
downloadProject-Tick-3bab56d8f1e59d921ac7857e6747c7ecbab045f7.tar.gz
Project-Tick-3bab56d8f1e59d921ac7857e6747c7ecbab045f7.zip
Change some parameters to value_initializer
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();