diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-25 15:46:47 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-25 15:46:47 +0100 |
commit | 3073a88cd16b6e85401363c814e5ac7ae11b9270 (patch) | |
tree | 30050be82e0056a2ceaf8233d5e88f2946773a53 /source/windowing | |
parent | b8da62bf43e42e6fc895664a9faf621cbe0325c8 (diff) |
Use "#pragma once" instead of include guards
Diffstat (limited to 'source/windowing')
31 files changed, 34 insertions, 123 deletions
diff --git a/source/windowing/StarButtonGroup.hpp b/source/windowing/StarButtonGroup.hpp index 07bd135..badab2b 100644 --- a/source/windowing/StarButtonGroup.hpp +++ b/source/windowing/StarButtonGroup.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_BUTTON_GROUP_HPP -#define STAR_BUTTON_GROUP_HPP +#pragma once #include "StarWidget.hpp" @@ -55,5 +54,3 @@ private: class ButtonGroupWidget : public ButtonGroup, public Widget {}; } - -#endif diff --git a/source/windowing/StarButtonWidget.hpp b/source/windowing/StarButtonWidget.hpp index d89f03c..d2616fe 100644 --- a/source/windowing/StarButtonWidget.hpp +++ b/source/windowing/StarButtonWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_BUTTON_WIDGET_HPP -#define STAR_BUTTON_WIDGET_HPP +#pragma once #include "StarButtonGroup.hpp" @@ -142,5 +141,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarCanvasWidget.hpp b/source/windowing/StarCanvasWidget.hpp index 295f877..e160160 100644 --- a/source/windowing/StarCanvasWidget.hpp +++ b/source/windowing/StarCanvasWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_CANVAS_WIDGET_HPP -#define STAR_CANVAS_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -105,5 +104,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarFlowLayout.hpp b/source/windowing/StarFlowLayout.hpp index 86127c6..afe11fa 100644 --- a/source/windowing/StarFlowLayout.hpp +++ b/source/windowing/StarFlowLayout.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_FLOW_LAYOUT_HPP -#define STAR_FLOW_LAYOUT_HPP +#pragma once #include "StarLayout.hpp" @@ -21,5 +20,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarFuelWidget.hpp b/source/windowing/StarFuelWidget.hpp index 3a7f506..c057b9a 100644 --- a/source/windowing/StarFuelWidget.hpp +++ b/source/windowing/StarFuelWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_FUEL_WIDGET_HPP -#define STAR_FUEL_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -38,5 +37,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarGuiContext.hpp b/source/windowing/StarGuiContext.hpp index 1f4be98..ef14619 100644 --- a/source/windowing/StarGuiContext.hpp +++ b/source/windowing/StarGuiContext.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_GUI_CONTEXT_HPP -#define STAR_GUI_CONTEXT_HPP +#pragma once #include "StarApplicationController.hpp" #include "StarTextPainter.hpp" @@ -147,5 +146,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarGuiReader.hpp b/source/windowing/StarGuiReader.hpp index e031f62..40c7d39 100644 --- a/source/windowing/StarGuiReader.hpp +++ b/source/windowing/StarGuiReader.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_GUI_READER_HPP -#define STAR_GUI_READER_HPP +#pragma once #include "StarWidgetParsing.hpp" @@ -19,5 +18,3 @@ protected: }; } - -#endif diff --git a/source/windowing/StarGuiTypes.hpp b/source/windowing/StarGuiTypes.hpp index d890f64..9a86180 100644 --- a/source/windowing/StarGuiTypes.hpp +++ b/source/windowing/StarGuiTypes.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WIDGET_UTILITIES_HPP -#define STAR_WIDGET_UTILITIES_HPP +#pragma once #include "StarString.hpp" #include "StarVector.hpp" @@ -47,5 +46,3 @@ T& directionalValueFromVector(GuiDirection direction, Vector<T, 2> const& vec) { } } - -#endif diff --git a/source/windowing/StarImageStretchWidget.hpp b/source/windowing/StarImageStretchWidget.hpp index 40470e8..cdc4f46 100644 --- a/source/windowing/StarImageStretchWidget.hpp +++ b/source/windowing/StarImageStretchWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_IMAGE_STRETCH_WIDGET_HPP -#define STAR_IMAGE_STRETCH_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -21,5 +20,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarImageWidget.hpp b/source/windowing/StarImageWidget.hpp index f900b68..eef02c4 100644 --- a/source/windowing/StarImageWidget.hpp +++ b/source/windowing/StarImageWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_IMAGE_WIDGET_HPP -#define STAR_IMAGE_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -47,5 +46,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarItemGridWidget.hpp b/source/windowing/StarItemGridWidget.hpp index 1238cb4..79c0469 100644 --- a/source/windowing/StarItemGridWidget.hpp +++ b/source/windowing/StarItemGridWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_ITEMGRID_WIDGET_HPP -#define STAR_ITEMGRID_WIDGET_HPP +#pragma once #include "StarItemBag.hpp" #include "StarWidget.hpp" @@ -97,5 +96,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarItemSlotWidget.hpp b/source/windowing/StarItemSlotWidget.hpp index 2e1b69a..9e8772d 100644 --- a/source/windowing/StarItemSlotWidget.hpp +++ b/source/windowing/StarItemSlotWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_ITEMSLOT_WIDGET_HPP -#define STAR_ITEMSLOT_WIDGET_HPP +#pragma once #include "StarWidget.hpp" #include "StarProgressWidget.hpp" @@ -73,5 +72,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarKeyBindings.hpp b/source/windowing/StarKeyBindings.hpp index e544a3a..d8737f7 100644 --- a/source/windowing/StarKeyBindings.hpp +++ b/source/windowing/StarKeyBindings.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_KEY_BINDINGS_HPP -#define STAR_KEY_BINDINGS_HPP +#pragma once #include "StarInputEvent.hpp" #include "StarSet.hpp" @@ -115,5 +114,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarLabelWidget.hpp b/source/windowing/StarLabelWidget.hpp index de692ce..a25e531 100644 --- a/source/windowing/StarLabelWidget.hpp +++ b/source/windowing/StarLabelWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_LABEL_WIDGET_HPP -#define STAR_LABEL_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -51,5 +50,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarLargeCharPlateWidget.hpp b/source/windowing/StarLargeCharPlateWidget.hpp index 7578ae9..ae35aae 100644 --- a/source/windowing/StarLargeCharPlateWidget.hpp +++ b/source/windowing/StarLargeCharPlateWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_LARGE_CHAR_PLATE_WIDGET_HPP -#define STAR_LARGE_CHAR_PLATE_WIDGET_HPP +#pragma once #include "StarWidget.hpp" #include "StarButtonWidget.hpp" @@ -60,5 +59,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarLayout.hpp b/source/windowing/StarLayout.hpp index 6fc68da..6fcd60f 100644 --- a/source/windowing/StarLayout.hpp +++ b/source/windowing/StarLayout.hpp @@ -1,5 +1,5 @@ -#ifndef STAR_LAYOUT_HPP -#define STAR_LAYOUT_HPP +#pragma once + #include "StarWidget.hpp" namespace Star { @@ -12,5 +12,3 @@ public: }; } - -#endif diff --git a/source/windowing/StarListWidget.hpp b/source/windowing/StarListWidget.hpp index 8bb63db..ae039f7 100644 --- a/source/windowing/StarListWidget.hpp +++ b/source/windowing/StarListWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_LIST_WIDGET_HPP -#define STAR_LIST_WIDGET_HPP +#pragma once #include "StarWidget.hpp" #include "StarGuiReader.hpp" @@ -65,5 +64,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarPane.hpp b/source/windowing/StarPane.hpp index 3a20ce0..1d1fc2a 100644 --- a/source/windowing/StarPane.hpp +++ b/source/windowing/StarPane.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PANE_HPP -#define STAR_PANE_HPP +#pragma once #include "StarWidget.hpp" #include "StarBiMap.hpp" @@ -134,5 +133,3 @@ protected: }; } - -#endif diff --git a/source/windowing/StarPaneManager.hpp b/source/windowing/StarPaneManager.hpp index 37634ea..ffa46c7 100644 --- a/source/windowing/StarPaneManager.hpp +++ b/source/windowing/StarPaneManager.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PANE_MANAGER_HPP -#define STAR_PANE_MANAGER_HPP +#pragma once #include "StarPane.hpp" #include "StarOrderedMap.hpp" @@ -105,5 +104,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarPortraitWidget.hpp b/source/windowing/StarPortraitWidget.hpp index 37b77dc..c9bf4ae 100644 --- a/source/windowing/StarPortraitWidget.hpp +++ b/source/windowing/StarPortraitWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PORTRAIT_WIDGET_HPP -#define STAR_PORTRAIT_WIDGET_HPP +#pragma once #include "StarWidget.hpp" #include "StarPlayer.hpp" @@ -43,4 +42,3 @@ private: }; } -#endif diff --git a/source/windowing/StarProgressWidget.hpp b/source/windowing/StarProgressWidget.hpp index 2a4a231..95c2701 100644 --- a/source/windowing/StarProgressWidget.hpp +++ b/source/windowing/StarProgressWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PROGRESS_WIDGET_HPP -#define STAR_PROGRESS_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -38,5 +37,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarRegisteredPaneManager.hpp b/source/windowing/StarRegisteredPaneManager.hpp index a33423a..bce6f20 100644 --- a/source/windowing/StarRegisteredPaneManager.hpp +++ b/source/windowing/StarRegisteredPaneManager.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_REGISTERED_PANE_MANAGER_HPP -#define STAR_REGISTERED_PANE_MANAGER_HPP +#pragma once #include "StarPaneManager.hpp" @@ -132,5 +131,3 @@ typename RegisteredPaneManager<KeyT>::PaneInfo const& RegisteredPaneManager<KeyT throw GuiException(strf("No registered pane with name '{}' found in RegisteredPaneManager", outputAny(paneId))); } } - -#endif diff --git a/source/windowing/StarScrollArea.hpp b/source/windowing/StarScrollArea.hpp index 1500744..eac1e53 100644 --- a/source/windowing/StarScrollArea.hpp +++ b/source/windowing/StarScrollArea.hpp @@ -1,5 +1,4 @@ -#ifndef _STAR_SCROLL_AREA_HPP_ -#define _STAR_SCROLL_AREA_HPP_ +#pragma once #include "StarWidget.hpp" #include "StarButtonWidget.hpp" @@ -128,5 +127,3 @@ private: }; typedef shared_ptr<ScrollArea> ScrollAreaPtr; } - -#endif diff --git a/source/windowing/StarSliderBar.hpp b/source/windowing/StarSliderBar.hpp index 9555331..f217514 100644 --- a/source/windowing/StarSliderBar.hpp +++ b/source/windowing/StarSliderBar.hpp @@ -1,5 +1,5 @@ -#ifndef STAR_SLIDER_BAR_HPP -#define STAR_SLIDER_BAR_HPP +#pragma once + #include "StarWidget.hpp" #include "StarButtonWidget.hpp" #include "StarImageWidget.hpp" @@ -53,5 +53,3 @@ private: }; typedef shared_ptr<SliderBarWidget> SliderBarWidgetPtr; } - -#endif diff --git a/source/windowing/StarStackWidget.hpp b/source/windowing/StarStackWidget.hpp index ba0c96d..eabee04 100644 --- a/source/windowing/StarStackWidget.hpp +++ b/source/windowing/StarStackWidget.hpp @@ -1,5 +1,5 @@ -#ifndef STAR_STACK_WIDGET_HPP -#define STAR_STACK_WIDGET_HPP +#pragma once + #include "StarWidget.hpp" #include "StarEither.hpp" @@ -21,5 +21,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarTabSet.hpp b/source/windowing/StarTabSet.hpp index d860dcb..b3bc5a9 100644 --- a/source/windowing/StarTabSet.hpp +++ b/source/windowing/StarTabSet.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_TAB_SET_HPP -#define STAR_TAB_SET_HPP +#pragma once #include "StarButtonGroup.hpp" @@ -47,5 +46,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarTextBoxWidget.hpp b/source/windowing/StarTextBoxWidget.hpp index a2ed8f7..11a0527 100644 --- a/source/windowing/StarTextBoxWidget.hpp +++ b/source/windowing/StarTextBoxWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_TEXTBOX_WIDGET_HPP -#define STAR_TEXTBOX_WIDGET_HPP +#pragma once #include "StarWidget.hpp" @@ -88,5 +87,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarVerticalLayout.hpp b/source/windowing/StarVerticalLayout.hpp index b46ce17..e9ab75e 100644 --- a/source/windowing/StarVerticalLayout.hpp +++ b/source/windowing/StarVerticalLayout.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_VERTICAL_LAYOUT_HPP -#define STAR_VERTICAL_LAYOUT_HPP +#pragma once #include "StarLayout.hpp" @@ -31,5 +30,3 @@ private: }; } - -#endif diff --git a/source/windowing/StarWidget.hpp b/source/windowing/StarWidget.hpp index 1e78d74..9940396 100644 --- a/source/windowing/StarWidget.hpp +++ b/source/windowing/StarWidget.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WIDGET_HPP -#define STAR_WIDGET_HPP +#pragma once #include "StarVector.hpp" #include "StarCasting.hpp" @@ -178,5 +177,3 @@ shared_ptr<WidgetType> Widget::findChild(String const& name) { } template <> struct fmt::formatter<Star::Widget> : ostream_formatter {}; - -#endif diff --git a/source/windowing/StarWidgetLuaBindings.hpp b/source/windowing/StarWidgetLuaBindings.hpp index d133760..ebd5087 100644 --- a/source/windowing/StarWidgetLuaBindings.hpp +++ b/source/windowing/StarWidgetLuaBindings.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_WIDGET_LUA_BINDINGS_HPP -#define STAR_WIDGET_LUA_BINDINGS_HPP +#pragma once #include "StarLua.hpp" #include "StarGuiReader.hpp" @@ -22,5 +21,3 @@ namespace LuaBindings { } } - -#endif diff --git a/source/windowing/StarWidgetParsing.hpp b/source/windowing/StarWidgetParsing.hpp index 6065ef7..46fa317 100644 --- a/source/windowing/StarWidgetParsing.hpp +++ b/source/windowing/StarWidgetParsing.hpp @@ -1,5 +1,4 @@ -#ifndef STAR_PANE_OBJECT_PARSING_HPP -#define STAR_PANE_OBJECT_PARSING_HPP +#pragma once #include "StarWidget.hpp" @@ -72,5 +71,3 @@ protected: }; } - -#endif |