Commit 3b322b93 authored by Projects's avatar Projects Committed by Grzegorz Daniluk

GUI demo: added const DiotHardware references in constructors

parent be741a10
......@@ -91,7 +91,7 @@ void DiotHardware::SetOutput(int slot, unsigned int state)
}
DiotIOCard::DiotIOCard(QWidget* parent, DiotHardware& hw, int num, int idx)
DiotIOCard::DiotIOCard(QWidget* parent, const DiotHardware& hw, int num, int idx)
: QFrame(parent), inputs(num, true),
outputs(num, false), slot_nr(idx), io_count(num)
{
......@@ -249,7 +249,7 @@ void DiotIOController::UpdateInputErr(int slot, unsigned int state)
}
DiotDiag::DiotDiag(QWidget* parent, DiotHardware& hw)
DiotDiag::DiotDiag(QWidget* parent, const DiotHardware& hw)
: QFrame(parent)
{
DIOT_Crate* crate = hw.GetCrate();
......
......@@ -127,7 +127,7 @@ class DiotIOCard : public QFrame {
Q_OBJECT
public:
DiotIOCard(QWidget* parent, DiotHardware& hw, int num, int idx);
DiotIOCard(QWidget* parent, const DiotHardware& hw, int num, int idx);
virtual ~DiotIOCard() {}
unsigned int GetInput() const {
......@@ -190,7 +190,7 @@ class DiotDiag : public QFrame {
Q_OBJECT
public:
DiotDiag(QWidget* parent, DiotHardware& hw);
DiotDiag(QWidget* parent, const DiotHardware& hw);
virtual ~DiotDiag() {}
public slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment