diff options
Diffstat (limited to 'WebCore/platform/win/FileSystemWin.cpp')
-rw-r--r-- | WebCore/platform/win/FileSystemWin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/WebCore/platform/win/FileSystemWin.cpp b/WebCore/platform/win/FileSystemWin.cpp index cef7196..5ee3b8e 100644 --- a/WebCore/platform/win/FileSystemWin.cpp +++ b/WebCore/platform/win/FileSystemWin.cpp @@ -134,10 +134,7 @@ String pathGetFileName(const String& path) String directoryName(const String& path) { - String fileName = pathGetFileName(path); - String dirName = String(path); - dirName.truncate(dirName.length() - pathGetFileName(path).length()); - return dirName; + return path.left(path.length() - pathGetFileName(path).length()); } static String bundleName() |