diff options
author | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-16 23:28:57 +0400 |
---|---|---|
committer | kinddragon <kinddragon@users.sourceforge.net> | 2010-05-16 23:28:57 +0400 |
commit | e9e09d64fbc9c884e7e00f22bfa9de18b8748bb9 (patch) | |
tree | 1a147ec652bb6baef603d72fc6bb9129c416b38b /src/apps/mplayerc/PPageAccelTbl.cpp | |
parent | 3a990e7f323a3f68c286ad8b3395c681368ff46b (diff) |
Some warnings fixed (uninitialized local variable, unused local variable, comparison signed/unsigned type, assignment in if)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1886 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageAccelTbl.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageAccelTbl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apps/mplayerc/PPageAccelTbl.cpp b/src/apps/mplayerc/PPageAccelTbl.cpp index 752801522..9b18994a6 100644 --- a/src/apps/mplayerc/PPageAccelTbl.cpp +++ b/src/apps/mplayerc/PPageAccelTbl.cpp @@ -1407,11 +1407,11 @@ void CPPageAccelTbl::OnBnClickedButton2() POSITION pos = m_list.GetFirstSelectedItemPosition();
if(!pos) return;
- AppSettings& s = AfxGetAppSettings();
-
while(pos)
{
- wmcmd& wc = m_wmcmds.GetAt((POSITION)m_list.GetItemData(m_list.GetNextSelectedItem(pos)));
+ int ni = m_list.GetNextSelectedItem(pos);
+ POSITION pi = (POSITION)m_list.GetItemData(ni);
+ wmcmd& wc = m_wmcmds.GetAt(pi);
wc.Restore();
}
|