From 3d1225fdabf3f4e3a2cc659e44c81acb18d78a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Fri, 28 Jun 2024 14:02:58 +0200 Subject: [PATCH] Some bug fixes after recent PRs --- src/IO/ADIOS/ADIOS2IOHandler.cpp | 2 +- src/IO/JSON/JSONIOHandlerImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IO/ADIOS/ADIOS2IOHandler.cpp b/src/IO/ADIOS/ADIOS2IOHandler.cpp index 4499a6083a..bb39f910ad 100644 --- a/src/IO/ADIOS/ADIOS2IOHandler.cpp +++ b/src/IO/ADIOS/ADIOS2IOHandler.cpp @@ -977,7 +977,7 @@ void ADIOS2IOHandlerImpl::openFile( // lazy opening is deathly in parallel situations auto &fileData = getFileData(**file, how_to_open); *parameters.out_parsePreference = fileData.parsePreference; - m_dirty.emplace(std::move(file)); + m_dirty.emplace(file); } void ADIOS2IOHandlerImpl::closeFile( diff --git a/src/IO/JSON/JSONIOHandlerImpl.cpp b/src/IO/JSON/JSONIOHandlerImpl.cpp index b68bcc7129..787617342d 100644 --- a/src/IO/JSON/JSONIOHandlerImpl.cpp +++ b/src/IO/JSON/JSONIOHandlerImpl.cpp @@ -26,10 +26,10 @@ #include "openPMD/IO/ADIOS/ADIOS2File.hpp" #include "openPMD/IO/AbstractIOHandler.hpp" #include "openPMD/IO/AbstractIOHandlerImpl.hpp" -#include "openPMD/ThrowError.hpp" #include "openPMD/IO/IOTask.hpp" #include "openPMD/IO/InvalidatableFile.hpp" #include "openPMD/IO/JSON/JSONFilePosition.hpp" +#include "openPMD/ThrowError.hpp" #include "openPMD/auxiliary/Filesystem.hpp" #include "openPMD/auxiliary/JSON_internal.hpp" #include "openPMD/auxiliary/Memory.hpp"