Skip to content

Commit 0c1b5b8

Browse files
committed
Small fixes
1 parent f02fedf commit 0c1b5b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ void ADIOS2IOHandlerImpl::openPath(
475475
std::string prefix =
476476
filePositionToString( setAndGetFilePosition( writable->parent ) );
477477
std::string suffix = auxiliary::removeSlashes( parameters.path );
478-
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
478+
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
479479
? ""
480480
: "/";
481481

src/Series.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,13 +1464,13 @@ WriteIterations::operator[]( key_type && key )
14641464
}
14651465
}
14661466
shared->currentlyOpen = key;
1467-
auto & res = shared->iterations[ std::move( key ) ];
1467+
auto & res = shared->iterations[ key ];
14681468
if( res.getStepStatus() == StepStatus::NoStep )
14691469
{
14701470
res.beginStep();
14711471
res.setStepStatus( StepStatus::DuringStep );
14721472
}
1473-
shared->iterations.setAttribute( "iterationIndex", key );
1473+
shared->iterations.setAttribute( "iterationIndex", std::move( key ) );
14741474
return res;
14751475
}
14761476
} // namespace openPMD

0 commit comments

Comments
 (0)