Remove spaces before line feed

This commit is contained in:
SirLynix
2024-01-25 14:38:06 +01:00
parent fccbaf435c
commit 9ada93b995
64 changed files with 187 additions and 187 deletions

View File

@@ -13,7 +13,7 @@ namespace Nz
* \returns The number of channels occupied by an audio format (mono returns 1, stereo returns 2, etc.)
*
* \param format A valid audio format
*
*
* \remark format cannot be AudioFormat::Unknown
*
* \see GuessAudioFormat

View File

@@ -97,7 +97,7 @@ namespace Nz
* \return true If it is the case
*
* \param state State to compare the top with
*
*
* \remark Because all actions popping or pushing a state don't take effect until next state machine update, this can return false on a just enabled state
*/
inline bool StateMachine::IsStateEnabled(const State* state) const
@@ -113,7 +113,7 @@ namespace Nz
* \return true If it is the case
*
* \param state State to compare the top with
*
*
* \remark Because all actions popping or pushing a state don't take effect until next state machine update, this can return false on a just pushed state
*/
inline bool StateMachine::IsTopState(const State* state) const

View File

@@ -393,7 +393,7 @@ namespace Nz
directory = std::move(newDirectory);
return true;
},
},
[&](std::string_view name)
{
if (name.empty())

View File

@@ -26,7 +26,7 @@ namespace Nz
/*!
* \brief Constructs a Frustum by specifying its planes
*
* \param corners Corners
* \param corners Corners
* \param planes Frustum of type U to convert to type T
*/
template<typename T>

View File

@@ -773,7 +773,7 @@ namespace Nz
* \param context Serialization context
* \param vector Input Vector2
*/
template<typename T>
template<typename T>
bool Serialize(SerializationContext& context, const Vector2<T>& vector, TypeTag<Vector2<T>>)
{
if (!Serialize(context, vector.x))

View File

@@ -62,7 +62,7 @@ namespace Nz
inline SocketState TcpServer::Listen(NetProtocol protocol, UInt16 port, unsigned int queueSize)
{
NazaraAssert(protocol != NetProtocol::Any, "Any protocol not supported for Listen"); //< TODO
NazaraAssert(protocol != NetProtocol::Unknown, "Invalid protocol");
NazaraAssert(protocol != NetProtocol::Unknown, "Invalid protocol");
IpAddress any;
switch (protocol)

View File

@@ -82,8 +82,8 @@ namespace Nz
template<typename T>
constexpr ComponentType GetComponentTypeOf()
{
return ComponentTypeId<std::decay_t<T>>();
{
return ComponentTypeId<std::decay_t<T>>();
}
}

View File

@@ -400,7 +400,7 @@ namespace Nz
/*!
* \class Nz::RichTextDrawer::BlockRef
* \brief Helper class representing a block inside a RichTextDrawer, allowing easier access.
*
*
* \warning This class is meant for temporary use, moving or destroying the RichTextDrawer or one of its blocks invalidates all BlockRef
*/
@@ -543,7 +543,7 @@ namespace Nz
}
/*!
* Changes the color of the referenced block characters
* Changes the color of the referenced block characters
* \remark This is the only property that can be changed without forcing a glyph regeneration
*
* \see GetTextColor, SetCharacterSize, SetFont, SetStyle, SetText

View File

@@ -30,7 +30,7 @@ namespace Nz
return GetVertexBuffer()->GetVertexCount();
}
template<typename T>
template<typename T>
bool VertexMapper::HasComponentOfType(VertexComponent component) const
{
return m_mapper.GetBuffer()->GetVertexDeclaration()->HasComponentOfType<T>(component);

View File

@@ -354,14 +354,14 @@ namespace Nz
{
switch (comparison)
{
case RendererComparison::Never: return VK_COMPARE_OP_NEVER;
case RendererComparison::Less: return VK_COMPARE_OP_LESS;
case RendererComparison::Equal: return VK_COMPARE_OP_EQUAL;
case RendererComparison::LessOrEqual: return VK_COMPARE_OP_LESS_OR_EQUAL;
case RendererComparison::Greater: return VK_COMPARE_OP_GREATER;
case RendererComparison::NotEqual: return VK_COMPARE_OP_NOT_EQUAL;
case RendererComparison::GreaterOrEqual: return VK_COMPARE_OP_GREATER_OR_EQUAL;
case RendererComparison::Always: return VK_COMPARE_OP_ALWAYS;
case RendererComparison::Never: return VK_COMPARE_OP_NEVER;
case RendererComparison::Less: return VK_COMPARE_OP_LESS;
case RendererComparison::Equal: return VK_COMPARE_OP_EQUAL;
case RendererComparison::LessOrEqual: return VK_COMPARE_OP_LESS_OR_EQUAL;
case RendererComparison::Greater: return VK_COMPARE_OP_GREATER;
case RendererComparison::NotEqual: return VK_COMPARE_OP_NOT_EQUAL;
case RendererComparison::GreaterOrEqual: return VK_COMPARE_OP_GREATER_OR_EQUAL;
case RendererComparison::Always: return VK_COMPARE_OP_ALWAYS;
}
NazaraErrorFmt("unhandled RendererComparison {0:#x})", UnderlyingCast(comparison));

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -13,7 +13,7 @@
#include <Nazara/VulkanRenderer/Wrapper/DescriptorPool.hpp>
#include <vulkan/vulkan_core.h>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -15,7 +15,7 @@ namespace Nz
inline bool DescriptorSetLayout::Create(Device& device, UInt32 bindingCount, const VkDescriptorSetLayoutBinding* binding, VkDescriptorSetLayoutCreateFlags flags, const VkAllocationCallbacks* allocator)
{
VkDescriptorSetLayoutCreateInfo createInfo =
VkDescriptorSetLayoutCreateInfo createInfo =
{
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, // VkStructureType sType;
nullptr, // const void* pNext;

View File

@@ -23,7 +23,7 @@
VK_DEFINE_HANDLE(VmaAllocator)
VK_DEFINE_HANDLE(VmaAllocation)
namespace Nz
namespace Nz
{
class VulkanDescriptorSetLayoutCache;

View File

@@ -11,7 +11,7 @@
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
#include <NazaraUtils/MovablePtr.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -11,7 +11,7 @@ namespace Nz::Vk
{
inline bool Instance::Create(RenderAPIValidationLevel validationLevel, const std::string& appName, UInt32 appVersion, const std::string& engineName, UInt32 engineVersion, UInt32 apiVersion, const std::vector<const char*>& layers, const std::vector<const char*>& extensions, const VkAllocationCallbacks* allocator)
{
VkApplicationInfo appInfo =
VkApplicationInfo appInfo =
{
VK_STRUCTURE_TYPE_APPLICATION_INFO,
nullptr,
@@ -22,7 +22,7 @@ namespace Nz::Vk
apiVersion
};
VkInstanceCreateInfo instanceInfo =
VkInstanceCreateInfo instanceInfo =
{
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
nullptr,

View File

@@ -13,7 +13,7 @@
#include <vulkan/vulkan_core.h>
#include <string>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -11,7 +11,7 @@
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
#include <string_view>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -12,7 +12,7 @@
#include <NazaraUtils/MovablePtr.hpp>
#include <vulkan/vulkan_core.h>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -10,7 +10,7 @@
#include <NazaraUtils/Prerequisites.hpp>
#include <Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp>
namespace Nz
namespace Nz
{
namespace Vk
{

View File

@@ -37,7 +37,7 @@ namespace Nz::Vk
inline bool Surface::Create(ANativeWindow* window, VkAndroidSurfaceCreateFlagsKHR flags, const VkAllocationCallbacks* allocator)
{
VkAndroidSurfaceCreateInfoKHR createInfo =
VkAndroidSurfaceCreateInfoKHR createInfo =
{
VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR,
nullptr,