Merge pull request #178 from marascio/lrm-resolve-173-free-nonheap-object

Resolve g++ warning: free-nonheap-object
This commit is contained in:
Toru Niina 2021-12-05 19:46:38 +09:00 committed by GitHub
commit 3f233d57be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}