mirror of https://github.com/PCSX2/pcsx2
MemoryCardSettings: Warning fix, use qsizetype instead of int
This commit is contained in:
parent
bd1b9ea718
commit
e51e4a35fe
|
|
@ -138,7 +138,7 @@ void MemoryCardSettingsWidget::autoSizeUI()
|
|||
void MemoryCardSettingsWidget::tryInsertCard(u32 slot, const QString& newCard)
|
||||
{
|
||||
// handle where the card is dragged in from explorer or something
|
||||
const int lastSlashPos = std::max(newCard.lastIndexOf('/'), newCard.lastIndexOf('\\'));
|
||||
const qsizetype lastSlashPos = std::max(newCard.lastIndexOf('/'), newCard.lastIndexOf('\\'));
|
||||
const std::string newCardStr(
|
||||
(lastSlashPos >= 0) ? newCard.mid(0, lastSlashPos).toStdString() : newCard.toStdString());
|
||||
if (newCardStr.empty())
|
||||
|
|
|
|||
Loading…
Reference in New Issue