diff --git a/sakura_core/dlg/CDlgJump.cpp b/sakura_core/dlg/CDlgJump.cpp index 330e26b0c3..6dbef20c92 100644 --- a/sakura_core/dlg/CDlgJump.cpp +++ b/sakura_core/dlg/CDlgJump.cpp @@ -249,9 +249,6 @@ void CDlgJump::SetData( void ) nIndex = 0; nPLSQLBlockNum = 0; for( i = 0; i < cFuncInfoArr.GetNum(); ++i ){ - if( 31 == cFuncInfoArr.GetAt( i )->m_nInfo || - 41 == cFuncInfoArr.GetAt( i )->m_nInfo ){ - } if( 31 == cFuncInfoArr.GetAt( i )->m_nInfo ){ if( m_pShareData->m_bLineNumIsCRLF_ForJump ){ /* 行番号の表示 false=折り返し単位/true=改行単位 */ auto_sprintf( szText, LS(STR_DLGJUMP_PSLQL), diff --git a/sakura_core/prop/CPropComKeyword.cpp b/sakura_core/prop/CPropComKeyword.cpp index fcee37aa07..d94a2a4803 100644 --- a/sakura_core/prop/CPropComKeyword.cpp +++ b/sakura_core/prop/CPropComKeyword.cpp @@ -576,8 +576,7 @@ void CPropKeyword::Clean_List_KeyWord( HWND hwndDlg, HWND hwndLIST_KEYWORD ) { if( IDYES == ::MessageBox( hwndDlg, LS(STR_PROPCOMKEYWORD_DEL), GSTR_APPNAME, MB_YESNO | MB_ICONQUESTION ) ){ // 2009.03.26 ryoji MB_ICONSTOP->MB_ICONQUESTION - if( m_Common.m_sSpecialKeyword.m_CKeyWordSetMgr.CleanKeyWords( m_Common.m_sSpecialKeyword.m_CKeyWordSetMgr.m_nCurrentKeyWordSetIdx ) ){ - } + m_Common.m_sSpecialKeyword.m_CKeyWordSetMgr.CleanKeyWords( m_Common.m_sSpecialKeyword.m_CKeyWordSetMgr.m_nCurrentKeyWordSetIdx ); SetKeyWordSet( hwndDlg, m_Common.m_sSpecialKeyword.m_CKeyWordSetMgr.m_nCurrentKeyWordSetIdx ); } } diff --git a/sakura_core/view/CEditView.cpp b/sakura_core/view/CEditView.cpp index 5e73ac9406..6dd8ed1916 100644 --- a/sakura_core/view/CEditView.cpp +++ b/sakura_core/view/CEditView.cpp @@ -289,8 +289,11 @@ BOOL CEditView::Create( wc.hbrBackground = (HBRUSH)NULL/*(COLOR_WINDOW + 1)*/; wc.lpszMenuName = NULL; wc.lpszClassName = GSTR_VIEWNAME; - if( 0 == ::RegisterClass( &wc ) ){ - } + + // TODO: 実装を改善する余地があります。 + // RegisterClassは既に登録された状態で呼ぶと失敗するため、 + // 単純に成否チェックして抜けたらマズいです。 + ::RegisterClass( &wc ); /* エディタウィンドウの作成 */ SetHwnd( diff --git a/sakura_core/view/CEditView_Mouse.cpp b/sakura_core/view/CEditView_Mouse.cpp index a7f1ae3f51..374b8b2225 100644 --- a/sakura_core/view/CEditView_Mouse.cpp +++ b/sakura_core/view/CEditView_Mouse.cpp @@ -422,8 +422,6 @@ normal_action:; } } - if( 0 < nWorkRel ){ - } /* 選択領域描画 */ GetSelectionInfo().DrawSelectArea(); }