summaryrefslogtreecommitdiff
path: root/src/parse/lex.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-21 23:44:51 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-21 23:44:51 +0800
commit1b744f3c07e7e34dad26f33d9988c3d34871e062 (patch)
treee7747ded50796553d35f27289c67a004867aceef /src/parse/lex.cpp
parentad93bc7fda1988e49b4e3a0d85344d7e3dc7df10 (diff)
downloadmrust-1b744f3c07e7e34dad26f33d9988c3d34871e062.tar.gz
All - Cleanup of memory leaks and similar
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r--src/parse/lex.cpp4
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()),