mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
Merge pull request #178 from marascio/lrm-resolve-173-free-nonheap-object
Resolve g++ warning: free-nonheap-object
This commit is contained in:
@@ -2134,7 +2134,7 @@ result<Value, std::string> parse_toml_file(location& loc)
|
|||||||
|
|
||||||
table_type data;
|
table_type data;
|
||||||
// root object is also a table, but without [tablename]
|
// root object is also a table, but without [tablename]
|
||||||
if(auto tab = parse_ml_table<value_type>(loc))
|
if(const auto tab = parse_ml_table<value_type>(loc))
|
||||||
{
|
{
|
||||||
data = std::move(tab.unwrap());
|
data = std::move(tab.unwrap());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user