C++ insanity..
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Robin Müller 2023-06-25 13:12:39 +02:00
parent 80160e8291
commit 93fb207032
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -40,8 +40,8 @@ ReturnValue_t TmFunnelBase::initialize() {
// The filesystem should always be available at the start.. Let's assume it always is, otherwise
// we just live with a regular 0 initialization. It simplifies a lot.
std::error_code e;
path filePath =
path(sdcMan.getCurrentMountPrefix() / std::string("conf") / sequenceCounterFilename);
path filePath = path(std::string(sdcMan.getCurrentMountPrefix()) / std::string("conf") /
std::string(sequenceCounterFilename));
if (exists(filePath, e)) {
std::ifstream ifile(filePath);
if (ifile.bad()) {
@ -60,8 +60,8 @@ ReturnValue_t TmFunnelBase::initialize() {
ReturnValue_t TmFunnelBase::saveSequenceCountToFile() {
using namespace std::filesystem;
std::error_code e;
path filePath =
path(sdcMan.getCurrentMountPrefix() / std::string("conf") / sequenceCounterFilename);
path filePath = path(std::string(sdcMan.getCurrentMountPrefix()) / std::string("conf") /
std::string(sequenceCounterFilename));
std::ofstream ofile(filePath);
if (ofile.bad()) {
return returnvalue::FAILED;