diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-21 23:44:51 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-21 23:44:51 +0800 |
commit | 1b744f3c07e7e34dad26f33d9988c3d34871e062 (patch) | |
tree | e7747ded50796553d35f27289c67a004867aceef /src/parse/lex.cpp | |
parent | ad93bc7fda1988e49b4e3a0d85344d7e3dc7df10 (diff) | |
download | mrust-1b744f3c07e7e34dad26f33d9988c3d34871e062.tar.gz |
All - Cleanup of memory leaks and similar
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r-- | src/parse/lex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index dfa8b489..fd6044f4 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -22,8 +22,8 @@ const bool DEBUG_PRINT_TOKENS = false; -Lexer::Lexer(::std::string filename): - m_path(filename), +Lexer::Lexer(const ::std::string& filename): + m_path(filename.c_str()), m_line(1), m_line_ofs(0), m_istream(filename.c_str()), |