Permalink
Browse files

Avoid round-trip for response_code to c_str() and back to std::string

  • Loading branch information...
1 parent 8a2d61e commit 2ea980909bf7035dc9ad2ab11582e247be17bf6e @ankon committed Apr 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ncsa.cpp
View
@@ -112,7 +112,7 @@ bool NCSALog::parseLine(std::string& line, LogEntry& entry) {
entry.path = matches[1];
// entry.protocol = matches[2];
- entry.response_code = matches[3].c_str();
+ entry.response_code = matches[3];
entry.response_size = atol(matches[4].c_str());
if(matches.size() > 5) {

0 comments on commit 2ea9809

Please sign in to comment.