mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-21 20:10:05 +00:00
refactor: replace mut-ref by take-and-move pattern
This commit is contained in:
parent
52621a4fd8
commit
a76c5b385f
@ -2453,7 +2453,7 @@ template<typename Comment = TOML11_DEFAULT_COMMENT_STRATEGY,
|
||||
template<typename ...> class Table = std::unordered_map,
|
||||
template<typename ...> class Array = std::vector>
|
||||
basic_value<Comment, Table, Array>
|
||||
parse(std::vector<char>& letters, const std::string& fname)
|
||||
parse(std::vector<char> letters, const std::string& fname)
|
||||
{
|
||||
using value_type = basic_value<Comment, Table, Array>;
|
||||
|
||||
@ -2468,7 +2468,7 @@ parse(std::vector<char>& letters, const std::string& fname)
|
||||
letters.push_back('\n');
|
||||
}
|
||||
|
||||
detail::location loc(std::move(fname), std::move(letters));
|
||||
detail::location loc(fname, std::move(letters));
|
||||
|
||||
// skip BOM if exists.
|
||||
// XXX component of BOM (like 0xEF) exceeds the representable range of
|
||||
|
Loading…
Reference in New Issue
Block a user