Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
CR: don't need to construct intermediate string
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfrey committed Aug 16, 2012
1 parent f697421 commit d627460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit d627460

Please sign in to comment.