Index: src/libchcore/TPath.cpp =================================================================== diff -u -N -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r9ddf8fdd5f641491dd30c49eb90f8f740314b6af --- src/libchcore/TPath.cpp (.../TPath.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchcore/TPath.cpp (.../TPath.cpp) (revision 9ddf8fdd5f641491dd30c49eb90f8f740314b6af) @@ -243,8 +243,8 @@ { if (bCaseSensitive) return m_strPath.Compare(rPath.m_strPath); - else - return m_strPath.CompareNoCase(rPath.m_strPath); + + return m_strPath.CompareNoCase(rPath.m_strPath); } // ============================================================================ @@ -299,8 +299,8 @@ { if (bCaseSensitive) return m_strPath.StartsWith(rPath.m_strPath.c_str()); - else - return m_strPath.StartsWithNoCase(rPath.m_strPath.c_str()); + + return m_strPath.StartsWithNoCase(rPath.m_strPath.c_str()); } // ============================================================================ @@ -325,8 +325,8 @@ m_strPath.Delete(0, rReferenceBasePath.m_strPath.GetLength()); return true; } - else - return false; + + return false; } bool TSmartPath::MakeAbsolutePath(const TSmartPath& rReferenceBasePath) @@ -445,8 +445,8 @@ { if (m_strPath.GetLength() == 2) return *this; - else - return PathFromWString(m_strPath.Left(2)); // c: for c:\windows\test.cpp + + return PathFromWString(m_strPath.Left(2)); // c: for c:\windows\test.cpp } return TSmartPath(); @@ -689,8 +689,8 @@ size_t stIndex = m_strPath.FindLastOf(_T("\\/")); if (stIndex == TString::npos) // no path separator? return true; - else - return (stIndex != TString::npos && stIndex != m_strPath.GetLength() - 1); + + return (stIndex != TString::npos && stIndex != m_strPath.GetLength() - 1); } // ============================================================================ @@ -705,8 +705,8 @@ size_t stIndex = m_strPath.FindLastOf(_T("\\/")); if (stIndex != TString::npos) return PathFromWString(m_strPath.MidRange(stIndex + 1, m_strPath.GetLength())); // "test.txt" for "c:\windows\test.txt" - else - return *this; + + return *this; } // ============================================================================