From 3bab56d8f1e59d921ac7857e6747c7ecbab045f7 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Sat, 18 Jul 2015 21:20:44 +0200 Subject: Change some parameters to value_initializer --- src/tag_compound.cpp | 4 ++-- src/tag_list.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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::put(const std::string& key, value&& val) +std::pair 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::put(const std::string& key } } -std::pair tag_compound::insert(const std::string& key, value&& val) +std::pair 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(); -- cgit 0.0.5-2-1-g0f52