Style: Replace header guards with #pragma once

This commit is contained in:
Thaddeus Crews
2025-02-01 10:33:58 -06:00
parent 96fdaa616b
commit 324512e11c
1746 changed files with 1767 additions and 6920 deletions

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_ACTION_H
#define OPENXR_ACTION_H
#pragma once
#include "core/io/resource.h"
@ -83,5 +82,3 @@ public:
};
VARIANT_ENUM_CAST(OpenXRAction::ActionType);
#endif // OPENXR_ACTION_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_ACTION_MAP_H
#define OPENXR_ACTION_MAP_H
#pragma once
#include "openxr_action.h"
#include "openxr_action_set.h"
@ -79,5 +78,3 @@ public:
~OpenXRActionMap();
};
#endif // OPENXR_ACTION_MAP_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_ACTION_SET_H
#define OPENXR_ACTION_SET_H
#pragma once
#include "openxr_action.h"
@ -71,5 +70,3 @@ public:
~OpenXRActionSet();
};
#endif // OPENXR_ACTION_SET_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_BINDING_MODIFIER_H
#define OPENXR_BINDING_MODIFIER_H
#pragma once
#include "../action_map/openxr_action.h"
#include "core/io/resource.h"
@ -77,5 +76,3 @@ protected:
public:
OpenXRIPBinding *get_ip_binding() const { return ip_binding; }
};
#endif // OPENXR_BINDING_MODIFIER_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_HAPTIC_FEEDBACK_H
#define OPENXR_HAPTIC_FEEDBACK_H
#pragma once
#include "core/io/resource.h"
#include <openxr/openxr.h>
@ -68,5 +67,3 @@ public:
OpenXRHapticVibration();
};
#endif // OPENXR_HAPTIC_FEEDBACK_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_INTERACTION_PROFILE_H
#define OPENXR_INTERACTION_PROFILE_H
#pragma once
#include "openxr_action.h"
#include "openxr_binding_modifier.h"
@ -137,5 +136,3 @@ public:
~OpenXRInteractionProfile();
};
#endif // OPENXR_INTERACTION_PROFILE_H

View File

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef OPENXR_INTERACTION_PROFILE_METADATA_H
#define OPENXR_INTERACTION_PROFILE_METADATA_H
#pragma once
///////////////////////////////////////////////////////////////////////////
// Stores available interaction profile metadata
@ -121,5 +120,3 @@ public:
void register_io_path(const String &p_interaction_profile, const String &p_display_name, const String &p_toplevel_path, const String &p_openxr_path, const String &p_openxr_extension_name, OpenXRAction::ActionType p_action_type);
const IOPath *get_io_path(const String p_interaction_profile, const String p_io_path) const;
};
#endif // OPENXR_INTERACTION_PROFILE_METADATA_H