diff options
author | sansnom05 <sansnom05@users.sourceforge.net> | 2010-11-21 06:29:50 +0300 |
---|---|---|
committer | sansnom05 <sansnom05@users.sourceforge.net> | 2010-11-21 06:29:50 +0300 |
commit | 680c751989ccae1c5a8e3af8036ead90f9ae8fec (patch) | |
tree | 390c982cf3f46892aa0037ab6d20d496dd781d14 /src/apps/mplayerc/PlayerNavigationDialog.cpp | |
parent | b6bb1d1cbcbfc79845d47e983d97acc4a5a05219 (diff) |
-using exist naming convention for variables in appsettings
-small cleanups(remove unused variables, use const for const member functions, header files cleanup)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2739 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerNavigationDialog.cpp')
-rw-r--r-- | src/apps/mplayerc/PlayerNavigationDialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/apps/mplayerc/PlayerNavigationDialog.cpp b/src/apps/mplayerc/PlayerNavigationDialog.cpp index 9bdda472a..6dccb27d5 100644 --- a/src/apps/mplayerc/PlayerNavigationDialog.cpp +++ b/src/apps/mplayerc/PlayerNavigationDialog.cpp @@ -121,11 +121,11 @@ void CPlayerNavigationDialog::SetupAudioSwitcherSubMenu(CDVBChannel* pChannel) if (!pChannel)
{
- nCurrentChannel = s.DVBLastChannel;
- POSITION pos = s.DVBChannels.GetHeadPosition();
+ nCurrentChannel = s.nDVBLastChannel;
+ POSITION pos = s.m_DVBChannels.GetHeadPosition();
while (pos && !bFound)
{
- pChannel = &s.DVBChannels.GetNext(pos);
+ pChannel = &s.m_DVBChannels.GetNext(pos);
if (nCurrentChannel == pChannel->GetPrefNumber())
{
bFound = TRUE;
@@ -158,12 +158,12 @@ void CPlayerNavigationDialog::UpdateElementList() {
m_ChannelList.ResetContent();
- nCurrentChannel = s.DVBLastChannel;
+ nCurrentChannel = s.nDVBLastChannel;
- POSITION pos = s.DVBChannels.GetHeadPosition();
+ POSITION pos = s.m_DVBChannels.GetHeadPosition();
while (pos)
{
- CDVBChannel& Channel = s.DVBChannels.GetNext(pos);
+ CDVBChannel& Channel = s.m_DVBChannels.GetNext(pos);
if ((m_bTVStations && (Channel.GetVideoPID() != 0)) ||
(!m_bTVStations && (Channel.GetAudioCount() > 0)) && (Channel.GetVideoPID() == 0))
{
@@ -208,7 +208,7 @@ void CPlayerNavigationDialog::OnSelChangeComboAudio() UINT nID;
CWnd* TempWnd;
AppSettings& s = AfxGetAppSettings();
- CDVBChannel* pChannel = s.FindChannelByPref(s.DVBLastChannel);
+ CDVBChannel* pChannel = s.FindChannelByPref(s.nDVBLastChannel);
nID = m_ComboAudio.GetCurSel() + ID_NAVIGATE_AUDIO_SUBITEM_START;
|