diff --git a/src/Subtitles/VobSubFile.cpp b/src/Subtitles/VobSubFile.cpp index 8cc4e6aa4e..5cc7b183d3 100644 --- a/src/Subtitles/VobSubFile.cpp +++ b/src/Subtitles/VobSubFile.cpp @@ -1,6 +1,6 @@ /* * (C) 2003-2006 Gabest - * (C) 2006-2023 see Authors.txt + * (C) 2006-2024 see Authors.txt * * This file is part of MPC-BE. * @@ -350,7 +350,7 @@ bool CVobSubFile::Open(CString fn) sp[j].bForced = false; int packetsize = 0, datasize = 0; - BYTE* buff = GetPacket((int)j, packetsize, datasize, i); + BYTE* buff = GetPacket(j, packetsize, datasize, i); if (!buff) { sp[j].bValid = false; continue; @@ -1731,7 +1731,7 @@ bool CVobSubFile::SaveWinSubMux(CString fn) std::vector& sp = m_langs[m_nLang].subpos; for (size_t i = 0; i < sp.size(); i++) { - if (!GetFrame((int)i)) { + if (!GetFrame(i)) { continue; } @@ -1967,7 +1967,7 @@ bool CVobSubFile::SaveScenarist(CString fn) std::vector& sp = m_langs[m_nLang].subpos; for (size_t i = 0, k = 0; i < sp.size(); i++) { - if (!GetFrame((int)i)) { + if (!GetFrame(i)) { continue; } @@ -2197,7 +2197,7 @@ bool CVobSubFile::SaveMaestro(CString fn) std::vector& sp = m_langs[m_nLang].subpos; for (size_t i = 0, k = 0; i < sp.size(); i++) { - if (!GetFrame((int)i)) { + if (!GetFrame(i)) { continue; } diff --git a/src/apps/mplayerc/HistoryDlg.cpp b/src/apps/mplayerc/HistoryDlg.cpp index 7d3af5cae1..f27864f01d 100644 --- a/src/apps/mplayerc/HistoryDlg.cpp +++ b/src/apps/mplayerc/HistoryDlg.cpp @@ -1,5 +1,5 @@ /* - * (C) 2021-2023 see Authors.txt + * (C) 2021-2024 see Authors.txt * * This file is part of MPC-BE. * @@ -386,7 +386,7 @@ void CHistoryDlg::OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult) int nItem = ((NM_LISTVIEW *)pNMHDR)->iItem; size_t index = m_list.GetItemData(nItem); - if (index < (int)m_recentSessions.size()) { + if (index < m_recentSessions.size()) { const auto& sesInfo = m_recentSessions[index]; auto pFrame = AfxGetMainFrame();