Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'add_missing_comm_python_bindings' into 'master'
[simgrid.git] / src / smpi / internals / smpi_host.cpp
index 0f1cb3e..60816f9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -120,7 +120,7 @@ double Host::oisend(size_t size, s4u::Host* src, s4u::Host* dst)
   return current;
 }
 
-void Host::check_factor_configs(const std::string op) const
+void Host::check_factor_configs(const std::string& op) const
 {
   static const std::unordered_map<std::string, SmpiOperation> name_to_op_enum{
       {"smpi/or", SmpiOperation::RECV}, {"smpi/os", SmpiOperation::SEND}, {"smpi/ois", SmpiOperation::ISEND}};