clang-format

This commit is contained in:
Lander Gallastegi 2024-10-06 16:40:39 +02:00
parent 142e42c5bd
commit be039a97e2
2 changed files with 2 additions and 3 deletions

View file

@ -39,8 +39,8 @@ static bool IsValidOption(OrbisImeDialogOption option, OrbisImeType type) {
}
static bool IsMemZero(const void* ptr, size_t size) {
return std::all_of(static_cast<const u8*>(ptr), static_cast<const u8*>(ptr) + size, [](u8 c)
{ return c == 0; });
return std::all_of(static_cast<const u8*>(ptr), static_cast<const u8*>(ptr) + size,
[](u8 c) { return c == 0; });
}
Error PS4_SYSV_ABI sceImeDialogAbort() {

View file

@ -256,7 +256,6 @@ bool ImeDialogState::ConvertUTF8ToOrbis(const char* utf8_text, std::size_t utf8_
std::size_t result = iconv(utf8_to_orbis, (char**)&utf8_text_ptr, &utf8_text_len_bytes,
(char**)&orbis_text_ptr, &orbis_text_len_bytes);
return result != (std::size_t)-1;
#else
int required_size = MultiByteToWideChar(CP_UTF8, 0, utf8_text, utf8_text_len, nullptr, 0);