Changeset 154001 in webkit


Ignore:
Timestamp:
Aug 13, 2013 7:44:37 AM (11 years ago)
Author:
rakuco@webkit.org
Message:

[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.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r153991 r154001  
     12013-08-13  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
     2
     3        [EFL][DRT] Simplify call to reverseFind()
     4        https://bugs.webkit.org/show_bug.cgi?id=119746
     5
     6        Reviewed by Christophe Dumez.
     7
     8        Follow-up to r153977.
     9
     10        * DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
     11        (pathSuitableForTestResult): Instead of defining a static variable
     12        that's only used in a single place, pass '/' to reverseFind() directly.
     13
    1142013-08-13  Alberto Garcia  <berto@igalia.com>
    215
  • trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp

    r153977 r154001  
    337337}
    338338
    339 static const char divider = '/';
    340 
    341339static String pathSuitableForTestResult(const char* uriString)
    342340{
     
    354352    String mainFrameUrlPathString = mainFrameURL.path();
    355353    String pathString = uri.path();
    356     String basePath = mainFrameUrlPathString.substring(0, mainFrameUrlPathString.reverseFind(divider) + 1);
     354    String basePath = mainFrameUrlPathString.substring(0, mainFrameUrlPathString.reverseFind('/') + 1);
    357355
    358356    if (!basePath.isEmpty() && pathString.startsWith(basePath))
Note: See TracChangeset for help on using the changeset viewer.