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
/
mpi
/
smpi_datatype.cpp
diff --git
a/src/smpi/mpi/smpi_datatype.cpp
b/src/smpi/mpi/smpi_datatype.cpp
index
1f233ba
..
8da3527
100644
(file)
--- a/
src/smpi/mpi/smpi_datatype.cpp
+++ b/
src/smpi/mpi/smpi_datatype.cpp
@@
-221,7
+221,7
@@
const char* Datatype::encode(MPI_Datatype dt)
return dt->id.c_str();
}
-MPI_Datatype Datatype::decode(
std::string
datatype_id)
+MPI_Datatype Datatype::decode(
const std::string&
datatype_id)
{
return id2type_lookup.find(datatype_id)->second;
}