diff options
author | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-15 01:00:12 +0400 |
---|---|---|
committer | Nevcairiel <Nevcairiel@users.sourceforge.net> | 2010-08-15 01:00:12 +0400 |
commit | 82c280922323377f15b3e0cc3c3e8f3cb33d94b2 (patch) | |
tree | 7d3bb27a3a4ea629af8f3717200e8270e61b9d41 /src | |
parent | d538a0a877f98abb846ff91ea2f9e9889de8d4c2 (diff) |
Style warning fixes
Patch by thevBm
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2244 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/mplayerc/PPageFileMediaInfo.cpp | 5 | ||||
-rw-r--r-- | src/apps/mplayerc/mplayerc.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/apps/mplayerc/PPageFileMediaInfo.cpp b/src/apps/mplayerc/PPageFileMediaInfo.cpp index af4da270d..9aee27fb2 100644 --- a/src/apps/mplayerc/PPageFileMediaInfo.cpp +++ b/src/apps/mplayerc/PPageFileMediaInfo.cpp @@ -21,7 +21,7 @@ */
// PPageFileMediaInfo.cpp : implementation file
-//
+
#include "stdafx.h"
#include "mplayerc.h"
@@ -42,7 +42,8 @@ CPPageFileMediaInfo::CPPageFileMediaInfo(CString fn) CPPageFileMediaInfo::~CPPageFileMediaInfo()
{
- if(m_pCFont) delete m_pCFont;
+ delete m_pCFont;
+ m_pCFont = NULL;
}
void CPPageFileMediaInfo::DoDataExchange(CDataExchange* pDX)
diff --git a/src/apps/mplayerc/mplayerc.cpp b/src/apps/mplayerc/mplayerc.cpp index ca99992c0..c63f267aa 100644 --- a/src/apps/mplayerc/mplayerc.cpp +++ b/src/apps/mplayerc/mplayerc.cpp @@ -373,9 +373,9 @@ bool CMPlayerCApp::StoreSettingsToIni() return StoreSettingsToRegistry();
fclose(f);
*/
- if(m_pszRegistryKey) free((void*)m_pszRegistryKey);
+ free((void*)m_pszRegistryKey);
m_pszRegistryKey = NULL;
- if(m_pszProfileName) free((void*)m_pszProfileName);
+ free((void*)m_pszProfileName);
m_pszProfileName = _tcsdup(ini);
return(true);
@@ -385,7 +385,7 @@ bool CMPlayerCApp::StoreSettingsToRegistry() {
_tremove(GetIniPath());
- if(m_pszRegistryKey) free((void*)m_pszRegistryKey);
+ free((void*)m_pszRegistryKey);
m_pszRegistryKey = NULL;
SetRegistryKey(_T("Gabest"));
|