Replaces header guards with pragma once

This commit is contained in:
2026-02-14 14:32:10 +01:00
parent ee185b68e6
commit 8668f72e6d
29 changed files with 23 additions and 117 deletions
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef BETTER_RADIOBUTTON_H
#define BETTER_RADIOBUTTON_H
#pragma once
#include <QRadioButton>
#include <QVBoxLayout>
@@ -23,5 +21,3 @@ class Better_Radiobutton : public QWidget
std::vector<QRadioButton *> m_radiobuttons;
QString m_checked;
};
#endif // BETTER_RADIOBUTTON_H
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef CAN_TRANSCEIVE_H
#define CAN_TRANSCEIVE_H
#pragma once
#include "hex_spinbox.hpp"
#include <QWidget>
@@ -29,5 +27,3 @@ class Can_Transceive : public QWidget
Ui::Can_Transceive *ui;
std::vector<HexSpinBox *> can_send_hexspinboxes;
};
#endif // CAN_TRANSCEIVE_H
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef _HEXSPINBOX_H_
#define _HEXSPINBOX_H_
#pragma once
#include <QLineEdit>
#include <QRegularExpressionValidator>
#include <QSpinBox>
@@ -28,5 +26,3 @@ class HexSpinBox : public QSpinBox
QRegularExpressionValidator *validator;
QString format;
};
#endif // _HEXSPINBOX_H_
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef LED_H
#define LED_H
#pragma once
#include "QPushButton"
class Led : public QPushButton
@@ -16,5 +14,3 @@ class Led : public QPushButton
bool is_read_only(QWidget *widget);
void set_read_only(QWidget *widget, bool read_only);
};
#endif // LED_H
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef PLOT_WRAPPER_HPP
#define PLOT_WRAPPER_HPP
#pragma once
#include <QObject>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
@@ -16,5 +14,3 @@ class Plot_wrapper : public QwtPlot
private:
QwtPlotCurve *m_curve;
};
#endif // PLOT_WRAPPER_HPP