Commit 80b26826 authored by rakuco@webkit.org's avatar rakuco@webkit.org

[EFL][DRT] Simplify call to reverseFind()

https://bugs.webkit.org/show_bug.cgi?id=119746

Reviewed by Christophe Dumez.

Follow-up to r153977.

* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(pathSuitableForTestResult): Instead of defining a static variable
that's only used in a single place, pass '/' to reverseFind() directly.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6385b615
2013-08-13 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
[EFL][DRT] Simplify call to reverseFind()
https://bugs.webkit.org/show_bug.cgi?id=119746
Reviewed by Christophe Dumez.
Follow-up to r153977.
* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(pathSuitableForTestResult): Instead of defining a static variable
that's only used in a single place, pass '/' to reverseFind() directly.
2013-08-13 Alberto Garcia <berto@igalia.com>
[GTK] Closing inspector window crashes wk
......
......@@ -336,8 +336,6 @@ void DumpRenderTreeChrome::resetDefaultsToConsistentValues()
policyDelegatePermissive = false;
}
static const char divider = '/';
static String pathSuitableForTestResult(const char* uriString)
{
KURL uri = KURL(ParsedURLString, uriString);
......@@ -353,7 +351,7 @@ static String pathSuitableForTestResult(const char* uriString)
String mainFrameUrlPathString = mainFrameURL.path();
String pathString = uri.path();
String basePath = mainFrameUrlPathString.substring(0, mainFrameUrlPathString.reverseFind(divider) + 1);
String basePath = mainFrameUrlPathString.substring(0, mainFrameUrlPathString.reverseFind('/') + 1);
if (!basePath.isEmpty() && pathString.startsWith(basePath))
return pathString.substring(basePath.length());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment