From c1a01c418357c4f25dbd29ee03e15df30523b8ea Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 5 Mar 2020 22:35:00 +0100 Subject: [PATCH] Remove useless inline --- .../VulkanRenderer/Wrapper/DeviceObject.hpp | 18 +++++++++--------- .../VulkanRenderer/Wrapper/DeviceObject.inl | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp b/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp index 0e6090d73..4062cb5c8 100644 --- a/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp +++ b/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.hpp @@ -19,23 +19,23 @@ namespace Nz class DeviceObject { public: - inline DeviceObject(); + DeviceObject(); DeviceObject(const DeviceObject&) = delete; - inline DeviceObject(DeviceObject&& object); - inline ~DeviceObject(); + DeviceObject(DeviceObject&& object); + ~DeviceObject(); - inline bool Create(DeviceHandle device, const CreateInfo& createInfo, const VkAllocationCallbacks* allocator = nullptr); - inline void Destroy(); + bool Create(DeviceHandle device, const CreateInfo& createInfo, const VkAllocationCallbacks* allocator = nullptr); + void Destroy(); - inline bool IsValid() const; + bool IsValid() const; - inline const DeviceHandle& GetDevice() const; - inline VkResult GetLastErrorCode() const; + const DeviceHandle& GetDevice() const; + VkResult GetLastErrorCode() const; DeviceObject& operator=(const DeviceObject&) = delete; DeviceObject& operator=(DeviceObject&&) = delete; - inline operator VkType() const; + operator VkType() const; protected: DeviceHandle m_device; diff --git a/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.inl b/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.inl index 961a5b4ad..def0ebc0a 100644 --- a/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.inl +++ b/include/Nazara/VulkanRenderer/Wrapper/DeviceObject.inl @@ -14,13 +14,13 @@ namespace Nz namespace Vk { template - inline DeviceObject::DeviceObject() : + DeviceObject::DeviceObject() : m_handle(VK_NULL_HANDLE) { } template - inline DeviceObject::DeviceObject(DeviceObject&& object) : + DeviceObject::DeviceObject(DeviceObject&& object) : m_device(std::move(object.m_device)), m_allocator(object.m_allocator), m_handle(object.m_handle), @@ -30,13 +30,13 @@ namespace Nz } template - inline DeviceObject::~DeviceObject() + DeviceObject::~DeviceObject() { Destroy(); } template - inline bool DeviceObject::Create(DeviceHandle device, const CreateInfo& createInfo, const VkAllocationCallbacks* allocator) + bool DeviceObject::Create(DeviceHandle device, const CreateInfo& createInfo, const VkAllocationCallbacks* allocator) { m_device = std::move(device); m_lastErrorCode = C::CreateHelper(m_device, &createInfo, allocator, &m_handle); @@ -56,7 +56,7 @@ namespace Nz } template - inline void DeviceObject::Destroy() + void DeviceObject::Destroy() { if (IsValid()) { @@ -66,25 +66,25 @@ namespace Nz } template - inline bool DeviceObject::IsValid() const + bool DeviceObject::IsValid() const { return m_handle != VK_NULL_HANDLE; } template - inline const DeviceHandle& DeviceObject::GetDevice() const + const DeviceHandle& DeviceObject::GetDevice() const { return m_device; } template - inline VkResult DeviceObject::GetLastErrorCode() const + VkResult DeviceObject::GetLastErrorCode() const { return m_lastErrorCode; } template - inline DeviceObject::operator VkType() const + DeviceObject::operator VkType() const { return m_handle; }