Skip to content

Commit

Permalink
Убраны ненужные приведения типов.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Jul 5, 2024
1 parent 05b7d8e commit b6b718b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Subtitles/VobSubFile.cpp
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1731,7 +1731,7 @@ bool CVobSubFile::SaveWinSubMux(CString fn)

std::vector<SubPos>& sp = m_langs[m_nLang].subpos;
for (size_t i = 0; i < sp.size(); i++) {
if (!GetFrame((int)i)) {
if (!GetFrame(i)) {
continue;
}

Expand Down Expand Up @@ -1967,7 +1967,7 @@ bool CVobSubFile::SaveScenarist(CString fn)

std::vector<SubPos>& 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;
}

Expand Down Expand Up @@ -2197,7 +2197,7 @@ bool CVobSubFile::SaveMaestro(CString fn)

std::vector<SubPos>& 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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/apps/mplayerc/HistoryDlg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) 2021-2023 see Authors.txt
* (C) 2021-2024 see Authors.txt
*
* This file is part of MPC-BE.
*
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b6b718b

Please sign in to comment.