Changeset 57283 in webkit
- Timestamp:
- Apr 8, 2010 9:23:24 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57282 r57283 1 2010-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 1 14 2010-04-08 Antonio Gomes <tonikitoo@webkit.org> 2 15 -
trunk/WebCore/platform/wince/FileSystemWince.cpp
r57273 r57283 134 134 bool makeAllDirectories(const String& path) 135 135 { 136 int lastDivPos = max(path.reverseFind('/'), path.reverseFind('\\'));136 int lastDivPos = std::max(path.reverseFind('/'), path.reverseFind('\\')); 137 137 int endPos = path.length(); 138 138 if (lastDivPos == path.length() - 1) { 139 139 endPos -= 1; 140 lastDivPos = max(path.reverseFind('/', lastDivPos), path.reverseFind('\\', lastDivPos));140 lastDivPos = std::max(path.reverseFind('/', lastDivPos), path.reverseFind('\\', lastDivPos)); 141 141 } 142 142 … … 161 161 String pathGetFileName(const String& path) 162 162 { 163 return path.substring( max(path.reverseFind('/'), path.reverseFind('\\')) + 1);163 return path.substring(std::max(path.reverseFind('/'), path.reverseFind('\\')) + 1); 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.