diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-05 11:13:36 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-05 11:13:36 -0700 |
commit | 2fe3dc5960a6cc231891a91dd68fcc8b159e9365 (patch) | |
tree | 1c030becf4ce7460a88b5be022affb7c4be4ec90 /launcher/minecraft/mod/ResourcePackFolderModel.cpp | |
parent | fd7338d3f3f72ca9532f11c9759ad02bbc759c7c (diff) | |
download | PrismLauncher-2fe3dc5960a6cc231891a91dd68fcc8b159e9365.tar.gz PrismLauncher-2fe3dc5960a6cc231891a91dd68fcc8b159e9365.tar.bz2 PrismLauncher-2fe3dc5960a6cc231891a91dd68fcc8b159e9365.zip |
fix: fix qchar conversion and codeql
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/ResourcePackFolderModel.cpp')
-rw-r--r-- | launcher/minecraft/mod/ResourcePackFolderModel.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/launcher/minecraft/mod/ResourcePackFolderModel.cpp b/launcher/minecraft/mod/ResourcePackFolderModel.cpp index c8c0c773..349353a5 100644 --- a/launcher/minecraft/mod/ResourcePackFolderModel.cpp +++ b/launcher/minecraft/mod/ResourcePackFolderModel.cpp @@ -158,12 +158,10 @@ QVariant ResourcePackFolderModel::headerData(int section, Qt::Orientation orient return {}; } case Qt::SizeHintRole: - switch (section) { - case ImageColumn: - return QSize(64,0); - default: - return {}; + if (section == ImageColumn) { + return QSize(64,0); } + return {}; default: return {}; } |