Skip to content

Commit eae94f4

Browse files
committed
fix formatting
1 parent 933d7e4 commit eae94f4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Server/Components/CAPI/Impl/ComponentManager.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -239,20 +239,20 @@ inline PlayerDataType* GetPlayerData(IPlayer* player)
239239
return failret
240240

241241
#define COPY_STRING_TO_CAPI_STRING_BUFFER(output, src, len_) \
242-
if (output) \
243-
{ \
244-
if (output->data && output->capacity >= len_) \
245-
{ \
246-
if (len_ && src) \
247-
{ \
248-
output->len = len_; \
249-
memcpy(output->data, src, uint32_t(len_)); \
250-
} \
251-
if (output->capacity > len_) \
252-
{ \
253-
output->data[len_] = '\0'; \
254-
} \
255-
} \
242+
if (output) \
243+
{ \
244+
if (output->data && output->capacity >= len_) \
245+
{ \
246+
if (len_ && src) \
247+
{ \
248+
output->len = len_; \
249+
memcpy(output->data, src, uint32_t(len_)); \
250+
} \
251+
if (output->capacity > len_) \
252+
{ \
253+
output->data[len_] = '\0'; \
254+
} \
255+
} \
256256
}
257257

258258
#define SET_CAPI_STRING_VIEW(output, str_view) \

0 commit comments

Comments
 (0)