File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 23
23
24
24
#include < new>
25
25
26
- CSelectLang::SSelLangInfo* CSelectLang::m_psLangInfo = NULL ; // メッセージリソース用構造体
26
+ CSelectLang::SSelLangInfo* CSelectLang::m_psLangInfo = nullptr ; // メッセージリソース用構造体
27
27
CSelectLang::PSSelLangInfoList CSelectLang::m_psLangInfoList;
28
28
29
29
/* !
@@ -35,6 +35,8 @@ CSelectLang::PSSelLangInfoList CSelectLang::m_psLangInfoList;
35
35
*/
36
36
CSelectLang::~CSelectLang ( void )
37
37
{
38
+ m_psLangInfo = nullptr ;
39
+
38
40
for (auto it = m_psLangInfoList.begin (); it != m_psLangInfoList.end (); it++) {
39
41
if ( (*it)->hInstance ){
40
42
FreeLibrary ( (*it)->hInstance );
@@ -76,7 +78,7 @@ LPCWSTR CSelectLang::getDefaultLangString( void )
76
78
// 言語IDを返す
77
79
WORD CSelectLang::getDefaultLangId (void )
78
80
{
79
- if (m_psLangInfo == NULL ){
81
+ if (m_psLangInfo == nullptr ){
80
82
return ::GetUserDefaultLangID ();
81
83
}
82
84
return m_psLangInfo->wLangId ;
@@ -121,11 +123,11 @@ HINSTANCE CSelectLang::InitializeLanguageEnvironment( void )
121
123
m_psLangInfoList.push_back ( psLangInfo );
122
124
}
123
125
124
- if ( m_psLangInfo != NULL && m_psLangInfo->hInstance && m_psLangInfo->hInstance != GetModuleHandle (NULL ) ){
126
+ if ( m_psLangInfo != nullptr && m_psLangInfo->hInstance && m_psLangInfo->hInstance != GetModuleHandle (NULL ) ){
125
127
// 読み込み済みのDLLを解放する
126
128
::FreeLibrary ( m_psLangInfo->hInstance );
127
129
m_psLangInfo->hInstance = NULL ;
128
- m_psLangInfo = NULL ;
130
+ m_psLangInfo = nullptr ;
129
131
}
130
132
131
133
// カレントディレクトリを保存。関数から抜けるときに自動でカレントディレクトリは復元される。
You can’t perform that action at this time.
0 commit comments