From 648b94400586f1979fb68f342dd614526bd201b0 Mon Sep 17 00:00:00 2001 From: Garux Date: Sun, 7 Sep 2025 18:24:30 +0500 Subject: [PATCH] fix formatting --- libs/maplib.h | 10 +++++----- libs/selectionlib.h | 2 +- plugins/assmodel/model.cpp | 4 ++-- plugins/entity/doom3group.cpp | 16 ++++++++-------- plugins/entity/eclassmodel.cpp | 14 +++++++------- plugins/entity/generic.cpp | 14 +++++++------- plugins/entity/group.cpp | 10 +++++----- plugins/entity/light.cpp | 16 ++++++++-------- plugins/entity/miscmodel.cpp | 14 +++++++------- plugins/md3model/model.h | 4 ++-- plugins/model/model.cpp | 4 ++-- radiant/brush.h | 6 +++--- radiant/brushnode.h | 18 +++++++++--------- radiant/map.cpp | 4 ++-- radiant/modelwindow.cpp | 8 ++++---- radiant/nullmodel.cpp | 4 ++-- radiant/patch.h | 22 +++++++++++----------- 17 files changed, 85 insertions(+), 85 deletions(-) diff --git a/libs/maplib.h b/libs/maplib.h index 40fd8c66..81cf8c86 100644 --- a/libs/maplib.h +++ b/libs/maplib.h @@ -155,19 +155,19 @@ class MapRoot : public scene::Node::Symbiot, public scene::Instantiable, public public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_traverse; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_transform; } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_name; } - MapFile& get( NullType){ + MapFile& get( NullType ){ return m_changeTracker; } - Layers& get( NullType){ + Layers& get( NullType ){ return m_layers; } diff --git a/libs/selectionlib.h b/libs/selectionlib.h index d089437d..f0483443 100644 --- a/libs/selectionlib.h +++ b/libs/selectionlib.h @@ -96,7 +96,7 @@ public: m_selectable( SelectedChangedCaller( *this ) ){ } - Selectable& get( NullType){ + Selectable& get( NullType ){ return m_selectable; } diff --git a/plugins/assmodel/model.cpp b/plugins/assmodel/model.cpp index f71ca9bc..7878e89e 100644 --- a/plugins/assmodel/model.cpp +++ b/plugins/assmodel/model.cpp @@ -497,10 +497,10 @@ public: void* m_test; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_picomodel; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_picomodel; } diff --git a/plugins/entity/doom3group.cpp b/plugins/entity/doom3group.cpp index bbc55cd0..df6ad7d1 100644 --- a/plugins/entity/doom3group.cpp +++ b/plugins/entity/doom3group.cpp @@ -461,7 +461,7 @@ public: typedef LazyStatic StaticTypeCasts; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_contained; } @@ -633,25 +633,25 @@ public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_contained.getTraversable(); } - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_contained; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } - ModelSkin& get( NullType){ + ModelSkin& get( NullType ){ return m_contained.getModelSkin(); } diff --git a/plugins/entity/eclassmodel.cpp b/plugins/entity/eclassmodel.cpp index 05b548ba..8a5aceb5 100644 --- a/plugins/entity/eclassmodel.cpp +++ b/plugins/entity/eclassmodel.cpp @@ -414,25 +414,25 @@ class EclassModelNode : public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_contained.getTraversable(); } - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_contained; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } - ModelSkin& get( NullType){ + ModelSkin& get( NullType ){ return m_contained.getModelSkin(); } diff --git a/plugins/entity/generic.cpp b/plugins/entity/generic.cpp index 43ab514a..32d2447b 100644 --- a/plugins/entity/generic.cpp +++ b/plugins/entity/generic.cpp @@ -289,10 +289,10 @@ public: typedef LazyStatic StaticTypeCasts; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_contained; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_contained; } @@ -371,19 +371,19 @@ class GenericEntityNode : public: typedef LazyStatic StaticTypeCasts; - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_contained; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } diff --git a/plugins/entity/group.cpp b/plugins/entity/group.cpp index 6a14f46e..84c26d36 100644 --- a/plugins/entity/group.cpp +++ b/plugins/entity/group.cpp @@ -428,19 +428,19 @@ public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_contained.getTraversable(); } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } diff --git a/plugins/entity/light.cpp b/plugins/entity/light.cpp index 2af5f5fc..ead591c5 100644 --- a/plugins/entity/light.cpp +++ b/plugins/entity/light.cpp @@ -1810,7 +1810,7 @@ class LightInstance : public: typedef LazyStatic StaticTypeCasts; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_contained; } @@ -2021,25 +2021,25 @@ class LightNode : public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_contained.getTraversable(); } - Editable& get( NullType){ + Editable& get( NullType ){ return m_contained; } - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_contained; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } diff --git a/plugins/entity/miscmodel.cpp b/plugins/entity/miscmodel.cpp index 073889f2..6aaf547f 100644 --- a/plugins/entity/miscmodel.cpp +++ b/plugins/entity/miscmodel.cpp @@ -468,25 +468,25 @@ class MiscModelNode : public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_contained.getTraversable(); } - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_contained; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_contained.getTransformNode(); } - Entity& get( NullType){ + Entity& get( NullType ){ return m_contained.getEntity(); } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_contained.getNameable(); } - Namespaced& get( NullType){ + Namespaced& get( NullType ){ return m_contained.getNamespaced(); } - ModelSkin& get( NullType){ + ModelSkin& get( NullType ){ return m_contained.getModelSkin(); } diff --git a/plugins/md3model/model.h b/plugins/md3model/model.h index dacbe8c5..4fe31a11 100644 --- a/plugins/md3model/model.h +++ b/plugins/md3model/model.h @@ -323,10 +323,10 @@ public: typedef LazyStatic StaticTypeCasts; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_model; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_model; } diff --git a/plugins/model/model.cpp b/plugins/model/model.cpp index ab2a65b0..2f47d811 100644 --- a/plugins/model/model.cpp +++ b/plugins/model/model.cpp @@ -448,10 +448,10 @@ public: void* m_test; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_picomodel; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_picomodel; } diff --git a/radiant/brush.h b/radiant/brush.h index 1bf964b8..6ea81d25 100644 --- a/radiant/brush.h +++ b/radiant/brush.h @@ -3408,13 +3408,13 @@ public: return m_brush; } - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_brush; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_brush; } - Transformable& get( NullType){ + Transformable& get( NullType ){ return m_transform; } diff --git a/radiant/brushnode.h b/radiant/brushnode.h index 58bd7ab4..956896c1 100644 --- a/radiant/brushnode.h +++ b/radiant/brushnode.h @@ -66,31 +66,31 @@ public: typedef LazyStatic StaticTypeCasts; - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_brush; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_brush; } - Brush& get( NullType){ + Brush& get( NullType ){ return m_brush; } - XMLImporter& get( NullType){ + XMLImporter& get( NullType ){ return m_xmlImporter; } - XMLExporter& get( NullType){ + XMLExporter& get( NullType ){ return m_xmlExporter; } - MapImporter& get( NullType){ + MapImporter& get( NullType ){ return m_mapImporter; } - MapExporter& get( NullType){ + MapExporter& get( NullType ){ return m_mapExporter; } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_brush; } - BrushDoom3& get( NullType){ + BrushDoom3& get( NullType ){ return m_brush; } diff --git a/radiant/map.cpp b/radiant/map.cpp index 79013a14..874442a9 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -675,10 +675,10 @@ public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_traverse; } - Layers& get( NullType){ + Layers& get( NullType ){ return m_layers; } diff --git a/radiant/modelwindow.cpp b/radiant/modelwindow.cpp index 774c570c..9151dda8 100644 --- a/radiant/modelwindow.cpp +++ b/radiant/modelwindow.cpp @@ -299,10 +299,10 @@ class ModelGraphRoot : public scene::Node::Symbiot, public scene::Instantiable, public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_traverse; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_transform; } @@ -387,10 +387,10 @@ class ModelNode : public: typedef LazyStatic StaticTypeCasts; - scene::Traversable& get( NullType){ + scene::Traversable& get( NullType ){ return m_model.getTraversable(); } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_transform; } diff --git a/radiant/nullmodel.cpp b/radiant/nullmodel.cpp index c1d8390c..64844263 100644 --- a/radiant/nullmodel.cpp +++ b/radiant/nullmodel.cpp @@ -102,10 +102,10 @@ public: typedef LazyStatic StaticTypeCasts; - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_nullmodel; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_nullmodel; } diff --git a/radiant/patch.h b/radiant/patch.h index 7802f1fb..5b0fe7dc 100644 --- a/radiant/patch.h +++ b/radiant/patch.h @@ -1392,13 +1392,13 @@ public: Patch& getPatch(){ return m_patch; } - Bounded& get( NullType){ + Bounded& get( NullType ){ return m_patch; } - Cullable& get( NullType){ + Cullable& get( NullType ){ return m_patch; } - Transformable& get( NullType){ + Transformable& get( NullType ){ return m_transform; } @@ -1718,28 +1718,28 @@ public: typedef LazyStatic StaticTypeCasts; - Snappable& get( NullType){ + Snappable& get( NullType ){ return m_patch; } - TransformNode& get( NullType){ + TransformNode& get( NullType ){ return m_patch; } - Patch& get( NullType){ + Patch& get( NullType ){ return m_patch; } - XMLImporter& get( NullType){ + XMLImporter& get( NullType ){ return m_patch; } - XMLExporter& get( NullType){ + XMLExporter& get( NullType ){ return m_patch; } - MapImporter& get( NullType){ + MapImporter& get( NullType ){ return m_importMap; } - MapExporter& get( NullType){ + MapExporter& get( NullType ){ return m_exportMap; } - Nameable& get( NullType){ + Nameable& get( NullType ){ return m_patch; }