当前位置: 首页>>代码示例>>C++>>正文


C++ BYTE_VECTOR::clear方法代码示例

本文整理汇总了C++中BYTE_VECTOR::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ BYTE_VECTOR::clear方法的具体用法?C++ BYTE_VECTOR::clear怎么用?C++ BYTE_VECTOR::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BYTE_VECTOR的用法示例。


在下文中一共展示了BYTE_VECTOR::clear方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SetDiff

void CFileDiffDlg::SetDiff(const CTGitPath * path, const CString &hash1, const CString &hash2)
{
	if(path!=NULL)
	{
		m_path1 = *path;
		m_path2 = *path;
		m_sFilter = path->GetGitPathString();
	}

	BYTE_VECTOR logout;

	if(hash1 == GIT_REV_ZERO)
	{
		m_rev1.m_CommitHash.Empty();
		m_rev1.GetSubject().LoadString(IDS_git_DEPTH_WORKING);
	}
	else
	{
		if (m_rev1.GetCommit(hash1))
			MessageBox(m_rev1.GetLastErr(), _T("TortoiseGit"), MB_ICONERROR);
	}

	logout.clear();

	if(hash2 == GIT_REV_ZERO)
	{
		m_rev2.m_CommitHash.Empty();
		m_rev2.GetSubject().LoadString(IDS_git_DEPTH_WORKING);
	}
	else
	{
		if (m_rev2.GetCommit(hash2))
			MessageBox(m_rev2.GetLastErr(), _T("TortoiseGit"), MB_ICONERROR);
	}
}
开发者ID:Teivaz,项目名称:TortoiseGit,代码行数:35,代码来源:FileDiffDlg.cpp

示例2: SetDiff

void CFileDiffDlg::SetDiff(CTGitPath * path, CString &hash1, CString &hash2)
{
	if(path!=NULL)
	{
		m_path1 = *path;
		m_path2 = *path;
		m_sFilter = path->GetGitPathString();
	}

	BYTE_VECTOR logout;

	if(hash1 == GIT_REV_ZERO)
	{
		m_rev1.m_CommitHash.Empty();
		m_rev1.GetSubject()=_T("Working Copy");
	}
	else
	{
		m_rev1.GetCommit(hash1);
	}

	logout.clear();

	if(hash2 == GIT_REV_ZERO)
	{
		m_rev2.m_CommitHash.Empty();
		m_rev2.GetSubject()=_T("Working Copy");
	}
	else
	{
		m_rev2.GetCommit(hash2);
	}
}
开发者ID:murank,项目名称:TortoiseGitMod,代码行数:33,代码来源:FileDiffDlg.cpp

示例3: SetDiff

void CFileDiffDlg::SetDiff(CTGitPath * path, CString hash1, CString hash2)
{
	if(path!=NULL)
	{
		m_path1 = *path;
		m_path2 = *path;
		m_sFilter = path->GetGitPathString();
	}

	BYTE_VECTOR logout;

	if(hash1 == GIT_REV_ZERO)
	{
		m_rev1.m_CommitHash.Empty();
		m_rev1.GetSubject() = CString(MAKEINTRESOURCE(IDS_git_DEPTH_WORKING));
	}
	else
	{
		m_rev1.GetCommit(hash1);
	}

	logout.clear();

	if(hash2 == GIT_REV_ZERO)
	{
		m_rev2.m_CommitHash.Empty();
		m_rev2.GetSubject() = CString(MAKEINTRESOURCE(IDS_git_DEPTH_WORKING));
	}
	else
	{
		m_rev2.GetCommit(hash2);
	}
}
开发者ID:hfeeki,项目名称:TortoiseGit,代码行数:33,代码来源:FileDiffDlg.cpp

示例4: SetDiff

void CFileDiffDlg::SetDiff(const CTGitPath * path, const CString &hash1, const CString &hash2)
{
	if(path!=NULL)
	{
		m_path1 = *path;
		m_path2 = *path;
		m_sFilter = path->GetGitPathString();
	}

	BYTE_VECTOR logout;

	if(hash1 == GIT_REV_ZERO)
	{
		m_rev1.m_CommitHash.Empty();
		m_rev1.GetSubject() = CString(MAKEINTRESOURCE(IDS_git_DEPTH_WORKING));
	}
	else
	{
		try
		{
			m_rev1.GetCommit(hash1);
		}
		catch (const char *msg)
		{
			MessageBox(_T("Could not get commit ") + hash1 + _T("\nlibgit reports:\n") + CString(msg), _T("TortoiseGit"), MB_ICONERROR);
		}
	}

	logout.clear();

	if(hash2 == GIT_REV_ZERO)
	{
		m_rev2.m_CommitHash.Empty();
		m_rev2.GetSubject() = CString(MAKEINTRESOURCE(IDS_git_DEPTH_WORKING));
	}
	else
	{
		try
		{
			m_rev2.GetCommit(hash2);
		}
		catch (const char *msg)
		{
			MessageBox(_T("Could not get commit ") + hash2 + _T("\nlibgit reports:\n") + CString(msg), _T("TortoiseGit"), MB_ICONERROR);
		}
	}
}
开发者ID:DinaraRigon,项目名称:TortoiseGit,代码行数:47,代码来源:FileDiffDlg.cpp


注:本文中的BYTE_VECTOR::clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。