Bring from 5_1_0: don't use insert with RString.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user