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
View File
@@ -1,5 +1,4 @@
#pragma once
#include "ui_item.hpp"
#define UI_BUTTON_TYPE std::string("ui_button")
-1
View File
@@ -1,5 +1,4 @@
#pragma once
#include "ui_item.hpp"
#include <QCanBusFrame>
-1
View File
@@ -1,6 +1,5 @@
#pragma once
#include "ui_item.hpp"
#include <cstdint>
#define UI_CHECKBOX_TYPE std::string("ui_checkbox")
-1
View File
@@ -1,5 +1,4 @@
#pragma once
#include "ui_item.hpp"
#define UI_COMBOBOX_TYPE std::string("ui_combobox")
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_DOUBLE_SPINBOX_H
#define UI_DOUBLE_SPINBOX_H
#pragma once
#include "ui_item.hpp"
#define UI_DOUBLE_SPINBOX_TYPE std::string("ui_double_spinbox")
@@ -28,5 +26,3 @@ class UI_double_spinbox : public UI_item
double m_max;
double m_value;
};
#endif // UI_DOUBLE_SPINBOX_H
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_HEX_SPINBOX_HPP
#define UI_HEX_SPINBOX_HPP
#pragma once
#include "ui_item.hpp"
#define UI_HEX_SPINBOX_TYPE std::string("ui_hex_spinbox")
@@ -28,5 +26,3 @@ class UI_hex_spinbox : public UI_item
double m_max;
double m_value;
};
#endif // UI_HEX_SPINBOX_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_PLOT_H
#define UI_PLOT_H
#pragma once
#include "ui_item.hpp"
#define UI_PLOT_TYPE std::string("ui_plot")
@@ -35,5 +33,3 @@ class UI_plot : public UI_item
bool m_x_label_enabled;
bool m_y_label_enabled;
};
#endif // UI_PLOT_H
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_SPINBOX_HPP
#define UI_SPINBOX_HPP
#pragma once
#include "ui_item.hpp"
#define UI_SPINBOX_TYPE std::string("ui_spinbox")
@@ -28,5 +26,3 @@ class UI_spinbox : public UI_item
double m_max;
double m_value;
};
#endif // UI_SPINBOX_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_STACKED_WIDGET_HPP
#define UI_STACKED_WIDGET_HPP
#pragma once
#include "ui_item.hpp"
#define UI_STACKED_WIDGET_TYPE std::string("ui_stacked_widget")
@@ -22,5 +20,3 @@ class UI_stacked_widget : public UI_item
size_t m_tab_count;
size_t m_current_tab;
};
#endif // UI_STACKED_WIDGET_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_STATUS_BAR_HPP
#define UI_STATUS_BAR_HPP
#pragma once
#include "ui_item.hpp"
#define UI_STATUS_BAR_TYPE std::string("ui_status_bar")
@@ -21,5 +19,3 @@ class UI_status_bar : public UI_item
std::string m_current_message;
size_t m_timeout;
};
#endif // UI_STATUS_BAR_HPP
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef UI_TAB_WIDGET_HPP
#define UI_TAB_WIDGET_HPP
#pragma once
#include "ui_item.hpp"
#define UI_TAB_WIDGET_TYPE std::string("ui_tab_widget")
@@ -33,5 +31,3 @@ class UI_tab_widget : public UI_item
std::vector<std::string> m_tab_names;
std::vector<bool> m_tab_visible;
};
#endif // UI_TAB_WIDGET_HPP
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UI_TABLE_HPP
#define UI_TABLE_HPP
#pragma once
#include "ui_item.hpp"
#define UI_TABLE_TYPE std::string("ui_table")
@@ -43,5 +42,3 @@ class UI_table : public UI_item
std::vector<bool> m_valid;
std::vector<std::string> m_table;
};
#endif // UI_TABLE_HPP