Skip to content
This repository
Browse code

Pass const string parameter as reference

  • Loading branch information...
commit c57223f4617f80c2bb7b2aca38975111d9e43bb9 1 parent 2e35bad
Jochen Topf authored July 01, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tile_protocol.hpp
2  tile_protocol.hpp
@@ -200,7 +200,7 @@ inline bool send(zmq::socket_t & socket, tile_protocol const& tile)
200 200
    return false;
201 201
 }
202 202
 
203  
-inline bool send_to(const std::string id, zmq::socket_t & socket, tile_protocol const& tile) {
  203
+inline bool send_to(const std::string & id, zmq::socket_t & socket, tile_protocol const& tile) {
204 204
    std::string buf;
205 205
    if (serialise(tile, buf)) {
206 206
       zmq::message_t msg(id.size()); 

0 notes on commit c57223f

Please sign in to comment.
Something went wrong with that request. Please try again.