Index: src/libchcore/TPath.cpp =================================================================== diff -u -N -r7b830c34855c8aaa81aac2c6e0ca0fa6bae95e66 -r2fe97a93f21771d75901d4b6559057d1ea055104 --- src/libchcore/TPath.cpp (.../TPath.cpp) (revision 7b830c34855c8aaa81aac2c6e0ca0fa6bae95e66) +++ src/libchcore/TPath.cpp (.../TPath.cpp) (revision 2fe97a93f21771d75901d4b6559057d1ea055104) @@ -250,7 +250,7 @@ // ============================================================================ const wchar_t* TSmartPath::ToString() const { - return m_strPath; + return m_strPath.c_str(); } // ============================================================================ @@ -332,9 +332,9 @@ bool TSmartPath::IsChildOf(const TSmartPath& rPath, bool bCaseSensitive) const { if(bCaseSensitive) - return m_strPath.StartsWith(rPath.m_strPath); + return m_strPath.StartsWith(rPath.m_strPath.c_str()); else - return m_strPath.StartsWithNoCase(rPath.m_strPath); + return m_strPath.StartsWithNoCase(rPath.m_strPath.c_str()); } // ============================================================================ @@ -350,9 +350,9 @@ { bool bStartsWith = false; if(bCaseSensitive) - bStartsWith = m_strPath.StartsWith(rReferenceBasePath.m_strPath); + bStartsWith = m_strPath.StartsWith(rReferenceBasePath.m_strPath.c_str()); else - bStartsWith = m_strPath.StartsWithNoCase(rReferenceBasePath.m_strPath); + bStartsWith = m_strPath.StartsWithNoCase(rReferenceBasePath.m_strPath.c_str()); if(bStartsWith) {