Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2011-08-11 00:08:23 +0400
committerUnderground78 <underground78@users.sourceforge.net>2011-08-11 00:08:23 +0400
commit8caf4b5aaf91b5ffabc65d2ac2f000d8603ba233 (patch)
tree9abcc8e8d78463d09ff1b69ec0443c71361a55e1 /src/apps/mplayerc/Playlist.cpp
parent3f21c3923cc0793b068cf74094225dabbd5c7dbb (diff)
Fix ~130 C4018 warnings (signed/unsigned mismatch).
Patch partially by XhmikosR. git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3637 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/Playlist.cpp')
-rw-r--r--src/apps/mplayerc/Playlist.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/apps/mplayerc/Playlist.cpp b/src/apps/mplayerc/Playlist.cpp
index 1acbf3773..a2fb81ffb 100644
--- a/src/apps/mplayerc/Playlist.cpp
+++ b/src/apps/mplayerc/Playlist.cpp
@@ -210,7 +210,7 @@ void CPlaylistItem::AutoLoadFiles()
CAtlArray<SubFile> ret;
GetSubFileNames(fn, paths, ret);
- for (int i = 0; i < ret.GetCount(); i++) {
+ for (size_t i = 0; i < ret.GetCount(); i++) {
if (!FindFileInList(m_subs, ret[i].fn)) {
m_subs.AddTail(ret[i].fn);
}
@@ -283,7 +283,7 @@ void CPlaylist::SortById()
a[i].n = GetAt(pos).m_id, a[i].pos = pos;
}
qsort(a.GetData(), a.GetCount(), sizeof(plsort_t), compare);
- for (int i = 0; i < a.GetCount(); i++) {
+ for (size_t i = 0; i < a.GetCount(); i++) {
AddTail(GetAt(a[i].pos));
__super::RemoveAt(a[i].pos);
if (m_pos == a[i].pos) {
@@ -303,7 +303,7 @@ void CPlaylist::SortByName()
a[i].pos = pos;
}
qsort(a.GetData(), a.GetCount(), sizeof(plsort2_t), compare2);
- for (int i = 0; i < a.GetCount(); i++) {
+ for (size_t i = 0; i < a.GetCount(); i++) {
AddTail(GetAt(a[i].pos));
__super::RemoveAt(a[i].pos);
if (m_pos == a[i].pos) {
@@ -321,7 +321,7 @@ void CPlaylist::SortByPath()
a[i].str = GetAt(pos).m_fns.GetHead(), a[i].pos = pos;
}
qsort(a.GetData(), a.GetCount(), sizeof(plsort2_t), compare2);
- for (int i = 0; i < a.GetCount(); i++) {
+ for (size_t i = 0; i < a.GetCount(); i++) {
AddTail(GetAt(a[i].pos));
__super::RemoveAt(a[i].pos);
if (m_pos == a[i].pos) {
@@ -341,7 +341,7 @@ void CPlaylist::Randomize()
}
qsort(a.GetData(), a.GetCount(), sizeof(plsort_t), compare);
CList<CPlaylistItem> pl;
- for (int i = 0; i < a.GetCount(); i++) {
+ for (size_t i = 0; i < a.GetCount(); i++) {
AddTail(GetAt(a[i].pos));
__super::RemoveAt(a[i].pos);
if (m_pos == a[i].pos) {