void CTGitPath::EnsureBackslashPathSet() const { if(m_sBackslashPath.IsEmpty()) { SetBackslashPath(m_sFwdslashPath); ATLASSERT(IsEmpty() || !m_sBackslashPath.IsEmpty()); } }
// This is a temporary function, to be used during the migration to // the path class. Ultimately, functions consuming paths should take a CTGitPath&, not a CString const CString& CTGitPath::GetWinPathString() const { if(m_sBackslashPath.IsEmpty()) { SetBackslashPath(m_sFwdslashPath); } return m_sBackslashPath; }
LPCTSTR CTGitPath::GetWinPath() const { if(IsEmpty()) { return _T(""); } if(m_sBackslashPath.IsEmpty()) { SetBackslashPath(m_sFwdslashPath); } return m_sBackslashPath; }
LPCTSTR CTSVNPath::GetWinPath() const { if(IsEmpty()) { return L""; } if(m_sBackslashPath.IsEmpty()) { SetBackslashPath(m_sFwdslashPath); } if(m_sBackslashPath.GetLength() >= 248) { m_sLongBackslashPath = L"\\\\?\\" + m_sBackslashPath; return m_sLongBackslashPath; } return m_sBackslashPath; }