aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r--src/jalv_qt.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 46f9a92..647c57b 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -48,7 +48,7 @@
#define CONTROL_WIDTH 150
#define DIAL_STEPS 10000
-static QApplication* app = NULL;
+static QApplication* app = nullptr;
class FlowLayout : public QLayout
{
@@ -148,7 +148,7 @@ FlowLayout::takeAt(int index)
if (index >= 0 && index < itemList.size()) {
return itemList.takeAt(index);
} else {
- return 0;
+ return nullptr;
}
}
@@ -249,7 +249,7 @@ FlowLayout::smartSpacing(QStyle::PixelMetric pm) const
return -1;
} else if (parent->isWidgetType()) {
QWidget* pw = static_cast<QWidget*>(parent);
- return pw->style()->pixelMetric(pm, 0, pw);
+ return pw->style()->pixelMetric(pm, nullptr, pw);
} else {
return static_cast<QLayout*>(parent)->spacing();
}
@@ -288,7 +288,7 @@ class Control : public QGroupBox
Q_OBJECT
public:
- Control(PortContainer portContainer, QWidget* parent = 0);
+ Control(PortContainer portContainer, QWidget* parent = nullptr);
Q_SLOT void dialChanged(int value);
@@ -630,8 +630,8 @@ build_control_widget(Jalv* jalv)
FlowLayout* flowLayout = new FlowLayout();
QLayout* layout = flowLayout;
- LilvNode* lastGroup = NULL;
- QHBoxLayout* groupLayout = NULL;
+ LilvNode* lastGroup = nullptr;
+ QHBoxLayout* groupLayout = nullptr;
for (int i = 0; i < portContainers.count(); ++i) {
PortContainer portContainer = portContainers[i];
Port* port = portContainer.port;
@@ -643,10 +643,10 @@ build_control_widget(Jalv* jalv)
if (!lilv_node_equals(group, lastGroup)) {
/* Group has changed */
LilvNode* groupName = lilv_world_get(
- world, group, jalv->nodes.lv2_name, NULL);
+ world, group, jalv->nodes.lv2_name, nullptr);
if (!groupName) {
groupName = lilv_world_get(
- world, group, jalv->nodes.rdfs_label, NULL);
+ world, group, jalv->nodes.rdfs_label, nullptr);
}
QGroupBox* groupBox = new QGroupBox(lilv_node_as_string(groupName));