A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use const& for the parameters of type std::string not affected by previous commit.
[simgrid.git]
/
src
/
smpi
/
include
/
smpi_coll.hpp
diff --git
a/src/smpi/include/smpi_coll.hpp
b/src/smpi/include/smpi_coll.hpp
index
b7c74e6
..
335cd7f
100644
(file)
--- a/
src/smpi/include/smpi_coll.hpp
+++ b/
src/smpi/include/smpi_coll.hpp
@@
-14,7
+14,7
@@
/** @brief MPI collective description */
#define COLL_DEFS(cat, ret, args, args2) \
/** @brief MPI collective description */
#define COLL_DEFS(cat, ret, args, args2) \
- static void set_##cat(
std::string name);
\
+ static void set_##cat(
const std::string& name);
\
static s_mpi_coll_description_t mpi_coll_##cat##_description[]; \
static int(*cat) args;
static s_mpi_coll_description_t mpi_coll_##cat##_description[]; \
static int(*cat) args;
@@
-91,7
+91,8
@@
struct s_mpi_coll_description_t {
class Colls{
public:
static XBT_PUBLIC void coll_help(const char* category, s_mpi_coll_description_t* table);
class Colls{
public:
static XBT_PUBLIC void coll_help(const char* category, s_mpi_coll_description_t* table);
- static XBT_PUBLIC int find_coll_description(s_mpi_coll_description_t* table, std::string name, const char* desc);
+ static XBT_PUBLIC int find_coll_description(s_mpi_coll_description_t* table, const std::string& name,
+ const char* desc);
static void set_collectives();
// for each collective type, create the set_* prototype, the description array and the function pointer
static void set_collectives();
// for each collective type, create the set_* prototype, the description array and the function pointer