From 1777d5c9fac9a9e2c45d89071a8830b26a1d251b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Kr=C3=BCger?= Date: Tue, 25 Apr 2023 10:09:58 +0200 Subject: [PATCH] Fix '_open' method in fits saving handler The '_open' method did not had enough parameters so the compiler complained about an abstract class and can't be used. --- control/src/CtSaving_Fits.cpp | 3 ++- control/src/CtSaving_Fits.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/control/src/CtSaving_Fits.cpp b/control/src/CtSaving_Fits.cpp index 05daa4c41..07a30e993 100644 --- a/control/src/CtSaving_Fits.cpp +++ b/control/src/CtSaving_Fits.cpp @@ -56,7 +56,8 @@ SaveContainerFits::~SaveContainerFits() } void* SaveContainerFits::_open(const std::string &filename, - std::ios_base::openmode openFlags) + std::ios_base::openmode openFlags, + CtSaving::Parameters& /*pars*/) { DEB_MEMBER_FUNCT(); return new std::string("!" + filename + ".fits"); diff --git a/control/src/CtSaving_Fits.h b/control/src/CtSaving_Fits.h index 9dab4fb0c..75dc774a5 100644 --- a/control/src/CtSaving_Fits.h +++ b/control/src/CtSaving_Fits.h @@ -37,7 +37,8 @@ namespace lima { virtual ~SaveContainerFits(); protected: virtual void* _open(const std::string &filename, - std::ios_base::openmode flags); + std::ios_base::openmode flags, + CtSaving::Parameters& pars); virtual void _close(void*); virtual long _writeFile(void*,Data &data, CtSaving::HeaderMap &aHeader,