mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-13 23:31:28 +00: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:
1 parent
6b7a71a1bb
commit
a8f0fbd3bb
16 files changed
+50
-55
No files matched your search
@@ -8,13 +8,13 @@
|
||||
class MockParserLineStream final : public IParserLineStream
|
||||
{
|
||||
public:
|
||||
static const std::string MOCK_FILENAME;
|
||||
static constexpr const char* MOCK_FILENAME = "MockFile";
|
||||
|
||||
private:
|
||||
class IncludePos
|
||||
{
|
||||
public:
|
||||
std::string m_filename;
|
||||
std::shared_ptr<std::string> m_filename;
|
||||
const std::vector<std::string>& m_lines;
|
||||
unsigned m_pos;
|
||||
|
||||
|
||||
Reference in new issue
Block a user