mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Optimize ParserFileStream making unused temp copies of path opject
This commit is contained in:
parent
f91c7f6afc
commit
e93c20faf8
@ -75,7 +75,8 @@ bool ParserFilesystemStream::IncludeFile(const std::string& filename)
|
||||
if (m_files.empty())
|
||||
return false;
|
||||
|
||||
const auto newFilePath = fs::path(m_files.top().m_file_path).remove_filename().concat(filename);
|
||||
auto newFilePath = fs::path(m_files.top().m_file_path);
|
||||
newFilePath.remove_filename().concat(filename);
|
||||
|
||||
FileInfo fileInfo(newFilePath.string());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user