Skip to content

Commit

Permalink
#527 supplemental fix for null point values
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHilferink committed Oct 6, 2023
1 parent cf8ecda commit 566f335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions clc/dll/include/ConstOper.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,22 +205,16 @@ struct AbstrConstParamOperator : public Operator
template <typename TR, typename TV=TR>
class ConstParamOperator : public AbstrConstParamOperator
{
typedef DataArray<TR> ResultType;

public:
ConstParamOperator(AbstrOperGroup* gr, TV value)
: AbstrConstParamOperator(gr
, ResultType::GetStaticClass()
, Unit<typename scalar_of<TR>::type>::GetStaticClass()
, composition_of<TR>::value
)
: AbstrConstParamOperator(gr, DataArray<TR>::GetStaticClass(), Unit<field_of_t<TR>>::GetStaticClass(), composition_of_v<TR>)
, m_Value(value)
{}

// Override Operator
void Calculate(DataWriteLock& res) const override
{
ResultType* result = mutable_array_cast<TR>(res);
auto result = mutable_array_cast<TR>(res);
Assign( result->GetWritableTile(0)[0], m_Value);
}

Expand Down
1 change: 1 addition & 0 deletions qtgui/exe/src/main_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ int main_without_SE_handler(int argc, char *argv[])
testResult = std::async([tsn, hwDispatch] { return RunTestScript(tsn, hwDispatch); });
}
splash->finish(&main_window);
splash.reset();

main_window.showMaximized();
auto result = dms_app.exec();
Expand Down

0 comments on commit 566f335

Please sign in to comment.