From 4d12369dceccd1a87516e6642557be727c7f08e8 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 8 Jul 2009 21:55:12 +0000 Subject: [PATCH] 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 --- src/apps/debugger/files/FileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/files/FileManager.cpp b/src/apps/debugger/files/FileManager.cpp index 3983475b00..fca9fb201a 100644 --- a/src/apps/debugger/files/FileManager.cpp +++ b/src/apps/debugger/files/FileManager.cpp @@ -253,7 +253,7 @@ private: // construct the located entry path BString locatedEntryPath(locatedDirectoryPath); int32 pathLength = locatedEntryPath.Length(); - if (pathLength >= 1 && locatedEntryPath.ByteAt(pathLength - 1) != '/') + if (pathLength >= 1 && locatedEntryPath[pathLength - 1] != '/') locatedEntryPath << '/'; locatedEntryPath << entry->Name();