diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-05-15 22:54:44 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-05-15 22:54:44 +0400 |
commit | 9704199a943cb7f7b4dc19f755dc60d8da55baa6 (patch) | |
tree | b9f8fafbc8bf393ad8e15a3db72e42c6ff8442ef /src/apps/mplayerc/PlayerCaptureDialog.h | |
parent | a283669d90fd4766dffe734be5a5998b7e57c52d (diff) |
legacy branch: merge r3071-r3107 from trunk
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@3108 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerCaptureDialog.h')
-rw-r--r-- | src/apps/mplayerc/PlayerCaptureDialog.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/apps/mplayerc/PlayerCaptureDialog.h b/src/apps/mplayerc/PlayerCaptureDialog.h index 046953cf8..cab61cc2c 100644 --- a/src/apps/mplayerc/PlayerCaptureDialog.h +++ b/src/apps/mplayerc/PlayerCaptureDialog.h @@ -57,7 +57,7 @@ public: virtual ~CFormatArray() {}
CFormat<T>* Find(CString name, bool fCreate = false) {
- for(int i = 0; i < (int)GetCount(); i++) {
+ for(size_t i = 0; i < GetCount(); ++i) {
if(GetAt(i)->name == name) {
return(GetAt(i));
}
@@ -78,9 +78,9 @@ public: return(false);
}
- for(int i = 0; i < (int)GetCount(); i++) {
+ for(size_t i = 0; i < GetCount(); ++i) {
CFormat<T>* pf = GetAt(i);
- for(int j = 0; j < (int)pf->GetCount(); j++) {
+ for(size_t j = 0; j < pf->GetCount(); ++j) {
CFormatElem<T>* pfe = pf->GetAt(j);
if(!pmt || (pfe->mt.majortype == pmt->majortype && pfe->mt.subtype == pmt->subtype)) {
if(ppf) {
@@ -99,9 +99,9 @@ public: return(false);
}
- for(int i = 0; i < (int)GetCount(); i++) {
+ for(size_t i = 0; i < GetCount(); ++i) {
CFormat<T>* pf = GetAt(i);
- for(int j = 0; j < (int)pf->GetCount(); j++) {
+ for(size_t j = 0; j < pf->GetCount(); ++j) {
CFormatElem<T>* pfe = pf->GetAt(j);
if((!pmt || pfe->mt == *pmt) && (!pcaps || !memcmp(pcaps, &pfe->caps, sizeof(T)))) {
if(ppf) {
|