Bring from 5_1_0: don't use insert with RString.

This commit is contained in:
Jason Felds
2015-10-14 20:23:40 -04:00
parent 849df4975b
commit af29d7dab2
+8 -2
View File
@@ -376,8 +376,14 @@ static void NormalizePath( RString &sPath )
{
FixSlashesInPlace( sPath );
CollapsePath( sPath, true );
if( sPath.size() == 0 || sPath[0] != '/' )
sPath.insert( sPath.begin(), '/' );
if (sPath.size() == 0)
{
sPath = '/';
}
else if (sPath[0] != '/')
{
sPath = '/' + sPath;
}
}
bool ilt( const RString &a, const RString &b ) { return a.CompareNoCase(b) < 0; }