From 308c340cc91452803c77706b91d405f002db1854 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 15 Nov 2024 15:18:06 +0100 Subject: [PATCH] Formatting --- spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp b/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp index 919cb62ee..5a38ee254 100644 --- a/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp +++ b/spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp @@ -2425,13 +2425,13 @@ spine_attachment spine_attachment_copy(spine_attachment attachment) { } spine_bounding_box_attachment spine_attachment_cast_to_bounding_box_attachment(spine_attachment attachment) { - if (attachment == nullptr) return nullptr; - Attachment *_attachment = (Attachment *)attachment; - if (_attachment->getRTTI().isExactly(BoundingBoxAttachment::rtti)) { - BoundingBoxAttachment *boundingBox = static_cast(_attachment); - return (spine_bounding_box_attachment)boundingBox; - } - return nullptr; + if (attachment == nullptr) return nullptr; + Attachment *_attachment = (Attachment *) attachment; + if (_attachment->getRTTI().isExactly(BoundingBoxAttachment::rtti)) { + BoundingBoxAttachment *boundingBox = static_cast(_attachment); + return (spine_bounding_box_attachment) boundingBox; + } + return nullptr; } void spine_attachment_dispose(spine_attachment attachment) {