Changeset 185786 in webkit
- Timestamp:
- Jun 19, 2015, 6:24:55 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/gtk/LocalizedStringsGtk.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r185784 r185786 1 2015-06-19 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 Fix absolute value warning in LocalizedStringsGtk.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=145919 5 6 Reviewed by Martin Robinson. 7 8 Use abs(static_cast<int>(time)) rather than static_cast<int>(abs(time)) to avoid clang's 9 warnings about passing a float to abs() instead of std::abs(). Also, because casting an int 10 to an int is silly. 11 12 * platform/gtk/LocalizedStringsGtk.cpp: 13 (WebCore::localizedMediaTimeDescription): 14 1 15 2015-06-19 Devin Rousso <drousso@apple.com> 2 16 -
trunk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
r185502 r185786 665 665 return String::fromUTF8(_("indefinite time")); 666 666 667 int seconds = static_cast<int>(abs(time));667 int seconds = abs(static_cast<int>(time)); 668 668 int days = seconds / (60 * 60 * 24); 669 669 int hours = seconds / (60 * 60);
Note:
See TracChangeset
for help on using the changeset viewer.