Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CR: don't need to construct intermediate string

  • Loading branch information...
commit d6274606cb62d5b5013fb05e97c1cc48d642fb3a 1 parent f697421
@erikfrey erikfrey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/net/handler.cpp
View
2  src/net/handler.cpp
@@ -84,7 +84,7 @@ void handler::write_stats()
void handler::write_version()
{
- buf_ = "VERSION " + string(DARNER_VERSION) + "\r\n";
+ buf_ = "VERSION " DARNER_VERSION "\r\n";
async_write(socket_, buffer(buf_), bind(&handler::read_request, shared_from_this(), _1, _2));
}
Please sign in to comment.
Something went wrong with that request. Please try again.