Fix warnings to build with Werror flag

This commit is contained in:
2021-09-28 00:38:33 +01:00
parent 4aebcb979c
commit 2c89e47b8a
51 changed files with 338 additions and 407 deletions
+6 -10
View File
@@ -27,8 +27,6 @@
#include <cmath>
#include "lib/LibMemory.h"
OptimiseDisplay::OptimiseDisplay()
{
/* Module Definition */
@@ -53,11 +51,11 @@ bool OptimiseDisplay::create( std::vector<CalypFrame*> apcFrameList )
{
_BASIC_MODULE_API_2_CHECK_
m_pcOptimisedFrame = new CalypFrame{ apcFrameList[0]->getWidth(),
apcFrameList[0]->getHeight(),
apcFrameList[0]->getPelFormat(),
apcFrameList[0]->getBitsPel(),
apcFrameList[0]->getHasNegativeValues() };
m_pcOptimisedFrame = std::make_unique<CalypFrame>( apcFrameList[0]->getWidth(),
apcFrameList[0]->getHeight(),
apcFrameList[0]->getPelFormat(),
apcFrameList[0]->getBitsPel(),
apcFrameList[0]->getHasNegativeValues() );
m_pcOptimisedFrame->reset();
return true;
@@ -95,11 +93,9 @@ CalypFrame* OptimiseDisplay::process( std::vector<CalypFrame*> apcFrameList )
}
}
}
return m_pcOptimisedFrame;
return m_pcOptimisedFrame.get();
}
void OptimiseDisplay::destroy()
{
delete m_pcOptimisedFrame;
m_pcOptimisedFrame = nullptr;
}