Use unsafe character access to avoid a gcc 4 warning. We check the range
ourselves anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31469 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -253,7 +253,7 @@ private:
|
|||||||
// construct the located entry path
|
// construct the located entry path
|
||||||
BString locatedEntryPath(locatedDirectoryPath);
|
BString locatedEntryPath(locatedDirectoryPath);
|
||||||
int32 pathLength = locatedEntryPath.Length();
|
int32 pathLength = locatedEntryPath.Length();
|
||||||
if (pathLength >= 1 && locatedEntryPath.ByteAt(pathLength - 1) != '/')
|
if (pathLength >= 1 && locatedEntryPath[pathLength - 1] != '/')
|
||||||
locatedEntryPath << '/';
|
locatedEntryPath << '/';
|
||||||
locatedEntryPath << entry->Name();
|
locatedEntryPath << entry->Name();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user