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
Remove explicit conversion to std::string when it's not required.
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_file.cpp
diff --git
a/src/smpi/mpi/smpi_file.cpp
b/src/smpi/mpi/smpi_file.cpp
index
eb59e24
..
98f7ccf
100644
(file)
--- a/
src/smpi/mpi/smpi_file.cpp
+++ b/
src/smpi/mpi/smpi_file.cpp
@@
-282,7
+282,7
@@
int File::set_view(MPI_Offset disp, MPI_Datatype etype, MPI_Datatype filetype, c
{
etype_ = etype;
filetype_ = filetype;
- datarep_ =
std::string(datarep)
;
+ datarep_ =
datarep
;
disp_ = disp;
if (comm_->rank() == 0){
if(disp != MPI_DISPLACEMENT_CURRENT)
@@
-373,7
+373,8
@@
void File::set_atomicity(bool a){
atomicity_ = a;
}
-bool File::get_atomicity(){
+bool File::get_atomicity() const
+{
return atomicity_;
}