Formatting

This commit is contained in:
Jonas Kvinge
2021-08-23 21:21:08 +02:00
parent ed7794f396
commit ea2bfbda44
111 changed files with 833 additions and 425 deletions

View File

@@ -255,8 +255,9 @@ bool MtpDevice::GetSupportedFiletypes(QList<Song::FileType> *ret, LIBMTP_mtpdevi
uint16_t *list = nullptr;
uint16_t length = 0;
if (LIBMTP_Get_Supported_Filetypes(device, &list, &length) != 0 || !list || !length)
if (LIBMTP_Get_Supported_Filetypes(device, &list, &length) != 0 || !list || !length) {
return false;
}
for (int i = 0; i < length; ++i) {
switch (LIBMTP_filetype_t(list[i])) {