Changeset 57283 in webkit


Ignore:
Timestamp:
Apr 8, 2010 9:23:24 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-08 Kwang Yul Seo <skyul@company100.net>

Reviewed by Simon Hausmann.

[WINCE] Replace max with std::max
https://bugs.webkit.org/show_bug.cgi?id=37201

std::max is preferred.

  • platform/wince/FileSystemWince.cpp: (WebCore::makeAllDirectories): (WebCore::pathGetFileName):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57282 r57283  
     12010-04-08  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [WINCE] Replace max with std::max
     6        https://bugs.webkit.org/show_bug.cgi?id=37201
     7
     8        std::max is preferred.
     9
     10        * platform/wince/FileSystemWince.cpp:
     11        (WebCore::makeAllDirectories):
     12        (WebCore::pathGetFileName):
     13
    1142010-04-08  Antonio Gomes  <tonikitoo@webkit.org>
    215
  • trunk/WebCore/platform/wince/FileSystemWince.cpp

    r57273 r57283  
    134134bool makeAllDirectories(const String& path)
    135135{
    136     int lastDivPos = max(path.reverseFind('/'), path.reverseFind('\\'));
     136    int lastDivPos = std::max(path.reverseFind('/'), path.reverseFind('\\'));
    137137    int endPos = path.length();
    138138    if (lastDivPos == path.length() - 1) {
    139139        endPos -= 1;
    140         lastDivPos = max(path.reverseFind('/', lastDivPos), path.reverseFind('\\', lastDivPos));
     140        lastDivPos = std::max(path.reverseFind('/', lastDivPos), path.reverseFind('\\', lastDivPos));
    141141    }
    142142
     
    161161String pathGetFileName(const String& path)
    162162{
    163     return path.substring(max(path.reverseFind('/'), path.reverseFind('\\')) + 1);
     163    return path.substring(std::max(path.reverseFind('/'), path.reverseFind('\\')) + 1);
    164164}
    165165
Note: See TracChangeset for help on using the changeset viewer.