We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b17e8 commit 08968d4Copy full SHA for 08968d4
src/lib/parser-gcc.cc
@@ -115,9 +115,8 @@ EToken Tokenizer::readNext(DefEvent *pEvt)
115
return T_EMPTY;
116
117
// drop CR at end of the line, coming from GCC in source code snippets
118
- // NOTE: std::string::back/pop_back() would look better but requires C++11
119
- if ('\r' == *line.rbegin())
120
- line.resize(line.size() - 1U);
+ if ('\r' == line.back())
+ line.pop_back();
121
122
lineNo_++;
123
0 commit comments