diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-05-18 13:45:19 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-05-18 19:59:23 +0400 |
commit | 8f6ae9a9d7c5c6d26bdf970220077f4f3628534e (patch) | |
tree | 24702a7242025e41e965ed4aea9754ccdc16f950 /src | |
parent | eff7392e3a9896bf8bf72483833eae698e8a55a3 (diff) |
Cosmetics: Remove useless AfxGetMyApp().
Diffstat (limited to 'src')
-rw-r--r-- | src/mpc-hc/mplayerc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpc-hc/mplayerc.cpp b/src/mpc-hc/mplayerc.cpp index 5a432b18f..c481665c7 100644 --- a/src/mpc-hc/mplayerc.cpp +++ b/src/mpc-hc/mplayerc.cpp @@ -280,7 +280,7 @@ CMPlayerCApp::CMPlayerCApp() {
TCHAR strApp[MAX_PATH];
- GetModuleFileNameEx(GetCurrentProcess(), AfxGetMyApp()->m_hInstance, strApp, MAX_PATH);
+ GetModuleFileNameEx(GetCurrentProcess(), m_hInstance, strApp, MAX_PATH);
m_strVersion = CFileVersionInfo::GetFileVersionStr(strApp);
memset(&m_ColorControl, 0, sizeof(m_ColorControl));
@@ -1226,7 +1226,7 @@ BOOL CMPlayerCApp::InitInstance() // Remove the current playlist if it exists
CString strSavePath;
- if (AfxGetMyApp()->GetAppSavePath(strSavePath)) {
+ if (GetAppSavePath(strSavePath)) {
CPath playlistPath;
playlistPath.Combine(strSavePath, _T("default.mpcpl"));
@@ -1342,7 +1342,7 @@ BOOL CMPlayerCApp::InitInstance() m_s.LoadSettings(); // read settings
- AfxGetMyApp()->m_AudioRendererDisplayName_CL = _T("");
+ m_AudioRendererDisplayName_CL = _T("");
if (!__super::InitInstance()) {
AfxMessageBox(_T("InitInstance failed!"));
|