Skip to content
Snippets Groups Projects
Commit 96152954 authored by Raul Radu's avatar Raul Radu
Browse files

[ValvesViewer] Small changes with smart pointers

parent aaf6d610
No related branches found
No related tags found
1 merge request!43[Codebase] Refactoring with smart pointers and changed implementation of Message Broker
......@@ -46,7 +46,7 @@ void ValvesViewer::fromXmlObject(const XmlObject& xmlObject)
void ValvesViewer::setupUi()
{
outerLayout = new QHBoxLayout;
outerLayout = std::make_unique<QHBoxLayout>();
outerLayout->setContentsMargins(0, 0, 0, 0);
outerLayout->setSpacing(0);
......@@ -59,7 +59,7 @@ void ValvesViewer::setupUi()
outerLayout->addWidget(label);
}
setLayout(outerLayout);
setLayout(outerLayout.get());
}
void ValvesViewer::customContextMenuActionSetup()
......
......@@ -47,7 +47,7 @@ private:
void setFilter(const Filter& filter);
void onMsgReceived(const Message& msg);
QHBoxLayout* outerLayout;
std::unique_ptr<QHBoxLayout> outerLayout;
Filter filter;
ValvesList::Valve currentState;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment