From 7b43b50f334215f377b7b594c173c44c8ad95d47 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:33:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mbgl/gl/uniform_buffer_gl.cpp | 6 +++--- src/mbgl/mtl/uniform_buffer.cpp | 6 +++--- src/mbgl/vulkan/uniform_buffer.cpp | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mbgl/gl/uniform_buffer_gl.cpp b/src/mbgl/gl/uniform_buffer_gl.cpp index 4f1a9a739af..7bc7d470d71 100644 --- a/src/mbgl/gl/uniform_buffer_gl.cpp +++ b/src/mbgl/gl/uniform_buffer_gl.cpp @@ -106,9 +106,9 @@ void UniformBufferGL::update(const void* data, std::size_t dataSize) { assert(isManagedAllocation ? dataSize <= managedBuffer.getContents().size() : dataSize <= size); if (dataSize > size || (isManagedAllocation && dataSize > managedBuffer.getContents().size())) { - Log::Error( - Event::General, - "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize)); + Log::Error(Event::General, + "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + + std::to_string(dataSize)); return; } diff --git a/src/mbgl/mtl/uniform_buffer.cpp b/src/mbgl/mtl/uniform_buffer.cpp index febf2235f36..f800323225a 100644 --- a/src/mbgl/mtl/uniform_buffer.cpp +++ b/src/mbgl/mtl/uniform_buffer.cpp @@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() { void UniformBuffer::update(const void* data, std::size_t dataSize) { assert(dataSize <= size); if (dataSize > size || dataSize > buffer.getSizeInBytes()) { - Log::Error( - Event::General, - "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize)); + Log::Error(Event::General, + "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + + std::to_string(dataSize)); return; } diff --git a/src/mbgl/vulkan/uniform_buffer.cpp b/src/mbgl/vulkan/uniform_buffer.cpp index f3574fab817..ba9aef60e58 100644 --- a/src/mbgl/vulkan/uniform_buffer.cpp +++ b/src/mbgl/vulkan/uniform_buffer.cpp @@ -28,9 +28,9 @@ UniformBuffer::~UniformBuffer() { void UniformBuffer::update(const void* data, std::size_t dataSize) { assert(dataSize <= size); if (dataSize > size || dataSize > buffer.getSizeInBytes()) { - Log::Error( - Event::General, - "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + std::to_string(dataSize)); + Log::Error(Event::General, + "Mismatched size given to UBO update, expected max " + std::to_string(size) + ", got " + + std::to_string(dataSize)); return; }