Skip to content

Commit 6e38bf8

Browse files
committed
Small fixes
1 parent c9cb746 commit 6e38bf8

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
@@ -479,7 +479,7 @@ void ADIOS2IOHandlerImpl::openPath(
479479
std::string prefix =
480480
filePositionToString( setAndGetFilePosition( writable->parent ) );
481481
std::string suffix = auxiliary::removeSlashes( parameters.path );
482-
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
482+
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
483483
? ""
484484
: "/";
485485

src/Series.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,13 +1491,13 @@ WriteIterations::operator[]( key_type && key )
14911491
}
14921492
}
14931493
shared->currentlyOpen = key;
1494-
auto & res = shared->iterations[ std::move( key ) ];
1494+
auto & res = shared->iterations[ key ];
14951495
if( res.getStepStatus() == StepStatus::NoStep )
14961496
{
14971497
res.beginStep();
14981498
res.setStepStatus( StepStatus::DuringStep );
14991499
}
1500-
shared->iterations.setAttribute( "iterationIndex", key );
1500+
shared->iterations.setAttribute( "iterationIndex", std::move( key ) );
15011501
return res;
15021502
}
15031503
} // namespace openPMD

0 commit comments

Comments
 (0)