From 7f0905bec30a608514bebee3aa13c1d9e75a3d0d Mon Sep 17 00:00:00 2001 From: npwoods Date: Sat, 11 Jun 2022 08:24:49 -0400 Subject: Changed the constructor of fs::dir_entry to take 'std::string &&name' instead of 'const std::string &name' (#9913) --- src/lib/formats/fs_vtech.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/formats/fs_vtech.cpp') diff --git a/src/lib/formats/fs_vtech.cpp b/src/lib/formats/fs_vtech.cpp index e294e657801..7b8edf53f63 100644 --- a/src/lib/formats/fs_vtech.cpp +++ b/src/lib/formats/fs_vtech.cpp @@ -137,7 +137,7 @@ std::vector vtech_image::impl::root_dir::contents() if(bdir.r8(off+1) != ':') continue; std::string fname = trim_end_spaces(bdir.rstr(off+2, 8)); - res.emplace_back(dir_entry(fname, dir_entry_type::file, id)); + res.emplace_back(dir_entry(std::move(fname), dir_entry_type::file, id)); id++; } } -- cgit v1.2.3-70-g09d2