Permalink
Browse files

CR: don't need to construct intermediate string

  • Loading branch information...
1 parent f697421 commit d6274606cb62d5b5013fb05e97c1cc48d642fb3a @erikfrey erikfrey committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/net/handler.cpp
View
@@ -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));
}

0 comments on commit d627460

Please sign in to comment.