mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-09 14:20:06 +00:00
Merge pull request #178 from marascio/lrm-resolve-173-free-nonheap-object
Resolve g++ warning: free-nonheap-object
This commit is contained in:
commit
3f233d57be
@ -2134,7 +2134,7 @@ result<Value, std::string> parse_toml_file(location& loc)
|
||||
|
||||
table_type data;
|
||||
// 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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user