本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}