Commit c5526a8c authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner Committed by JINMEI Tatuya
Browse files

[2428] Code simplification

We don't need that intermediate variable
parent 9ece3d02
...@@ -116,14 +116,8 @@ public: ...@@ -116,14 +116,8 @@ public:
void doInclude() { void doInclude() {
// First, get the filename to include // First, get the filename to include
const MasterToken::StringRegion const string
filename_tok(lexer_.getNextToken(MasterToken::QSTRING). filename(lexer_.getNextToken(MasterToken::QSTRING).getString());
getStringRegion());
// Push the filename. We abuse the fact that filename
// may not contain '\0' anywhere in it, so we can
// freely use the filename.beg directly.
string filename(filename_tok.beg);
// There could be an origin (or maybe not). So try looking // There could be an origin (or maybe not). So try looking
const MasterToken name_tok(lexer_.getNextToken(MasterToken::QSTRING, const MasterToken name_tok(lexer_.getNextToken(MasterToken::QSTRING,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment