mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-21 04:07:52 -05:00
Use shared ptr for line filenames to be able to still use filenames when original file has been closed
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
ParserSingleInputStream::ParserSingleInputStream(std::istream& stream, std::string fileName)
|
||||
: m_stream(stream),
|
||||
m_file_name(std::move(fileName)),
|
||||
m_file_name(std::make_shared<std::string>(std::move(fileName))),
|
||||
m_line_number(1)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user