]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Mailbox.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use const& for the parameters of type std::string not affected by previous commit.
[simgrid.git] / include / simgrid / s4u / Mailbox.hpp
index e226df2f791fb4cac2ebc88fff6e8f7e6b33e175..7cb4c8d2e67b5bc51b447facb4363d0610f421ea 100644 (file)
@@ -38,7 +38,7 @@ public:
   const char* get_cname() const;
 
   /** Retrieve the mailbox associated to the given name */
-  static MailboxPtr by_name(std::string name);
+  static MailboxPtr by_name(const std::string& name);
 
   /** Returns whether the mailbox contains queued communications */
   bool empty();