mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
DIRECTOR: replace whitespace trim with String::trim
This commit is contained in:
parent
a7426c2872
commit
b62a77f498
@ -302,13 +302,8 @@ Common::String pathMakeRelative(Common::String path, bool recursive, bool addext
|
||||
debug(2, "pathMakeRelative(): s2 %s", convPath.c_str());
|
||||
|
||||
// Strip the leading whitespace from the path
|
||||
if (initialPath.hasPrefix(" ")) {
|
||||
Common::String newPath = "";
|
||||
for (uint i = 1; i < initialPath.size(); i++)
|
||||
newPath += initialPath[i];
|
||||
initialPath = newPath;
|
||||
}
|
||||
|
||||
initialPath.trim();
|
||||
|
||||
if (f.open(initialPath))
|
||||
return initialPath;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user