From 19d9170b422a25bb6255974b624226a2221a1c9d Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 16 Dec 2011 02:26:05 +0100 Subject: [PATCH] fixed warnings Signed-off-by: Sven Strickroth --- src/Git/GitStatusListCtrl.cpp | 2 +- src/TortoiseProc/BrowseRefsDlg.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Git/GitStatusListCtrl.cpp b/src/Git/GitStatusListCtrl.cpp index b0fd1eb9f..879f5f4f4 100644 --- a/src/Git/GitStatusListCtrl.cpp +++ b/src/Git/GitStatusListCtrl.cpp @@ -2215,7 +2215,7 @@ void CGitStatusListCtrl::OnContextMenuList(CWnd * pWnd, CPoint point) case IDGITLC_COMPARETWOFILES: { POSITION pos = GetFirstSelectedItemPosition(); - CTGitPath * firstfilepath, * secondfilepath; + CTGitPath * firstfilepath = NULL, * secondfilepath = NULL; if (pos) { firstfilepath = (CTGitPath * )GetItemData(GetNextSelectedItem(pos)); diff --git a/src/TortoiseProc/BrowseRefsDlg.cpp b/src/TortoiseProc/BrowseRefsDlg.cpp index 3af80366d..51010069a 100644 --- a/src/TortoiseProc/BrowseRefsDlg.cpp +++ b/src/TortoiseProc/BrowseRefsDlg.cpp @@ -305,7 +305,7 @@ bool CBrowseRefsDlg::SelectRef(CString refName, bool bExactMatch) refName = newRefName; //else refName is not a valid ref. Try to select as good as possible. } - if(wcsnicmp(refName,L"refs/",5)!=0) + if(_wcsnicmp(refName, L"refs/", 5) != 0) return false; // Not a ref name CShadowTree& treeLeafHead=GetTreeNode(refName,NULL,false); @@ -339,7 +339,7 @@ CShadowTree& CBrowseRefsDlg::GetTreeNode(CString refName, CShadowTree* pTreePos, { if(pTreePos==NULL) { - if(wcsnicmp(refName,L"refs/",5)==0) + if(_wcsnicmp(refName, L"refs/", 5) == 0) refName=refName.Mid(5); pTreePos=&m_TreeRoot; } -- 2.11.4.GIT