OSDN Git Service

Cppcheck: Variable '...' is assigned a value that is never used.
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 30 Jun 2019 03:43:05 +0000 (12:43 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 30 Jun 2019 03:43:05 +0000 (12:43 +0900)
Src/Common/PropertyPageHost.cpp
Src/ConfigLog.cpp
Src/DirView.cpp

index d13c001..3abf7b8 100644 (file)
@@ -240,14 +240,12 @@ BOOL CPropertyPageHost::PreTranslateMessage(MSG* pMsg)
 // it by providing a replacement to the buggy code
 BOOL COccManager::IsDialogMessage(CWnd* pWndDlg, LPMSG lpMsg)
 {
-       CWnd* pWndFocus = CWnd::GetFocus();
-       HWND hWndFocus = pWndFocus->GetSafeHwnd();
        UINT uMsg = lpMsg->message;
 
        if (((uMsg >= WM_KEYFIRST) && (uMsg <= WM_KEYLAST)) ||
                ((uMsg >= WM_MOUSEFIRST) && (uMsg <= WM_MOUSELAST)))
        {
-               CWnd* pWndCtrl = pWndFocus;
+               CWnd* pWndCtrl = CWnd::GetFocus();
 
                // Walk up the parent chain, until we find an OLE control.
                while ((pWndCtrl != nullptr) && (pWndCtrl->m_pCtrlSite == nullptr) &&
index 9021933..a2fd79d 100644 (file)
@@ -371,8 +371,6 @@ bool CConfigLog::DoFile(String &sError)
        FileWriteString(_T("\r\n\r\nCommand Line:        "));
        FileWriteString(szCmdLine);
 
-       String sEXEPathOnly = paths::GetPathOnly(sEXEFullFileName);
-
        FileWriteString(_T("\r\n\r\nModule Names:         '~' prefix indicates module is loaded into the WinMerge process.\r\n"));
        FileWriteString(_T(" Windows:\r\n"));
        WriteVersionOf1(2, _T("kernel32.dll"));
index fd81926..74fc555 100644 (file)
@@ -517,7 +517,6 @@ void CDirView::ReloadColumns()
  */
 void CDirView::RedisplayChildren(DIFFITEM *diffpos, int level, UINT &index, int &alldiffs)
 {
-       CDirDoc *pDoc = GetDocument();
        const CDiffContext &ctxt = GetDiffContext();
        while (diffpos != nullptr)
        {