Changeset 142463 in webkit
- Timestamp:
- Feb 11, 2013 6:43:33 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r142462 r142463 1 2013-02-11 Zan Dobersek <zdobersek@igalia.com> 2 3 [GTK][Clang] Build errors in LocalizedStringsGtk.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=109418 5 6 Reviewed by Philippe Normand. 7 8 Use the C++ isfinite(float) and abs(float) (instead of fabsf(float)) 9 methods by including the WTF MathExtras.h header. Use a static cast to 10 an integer type on the float return value of the abs(float) method call 11 instead of the C-style cast. 12 13 No new tests - no new functiolnality. 14 15 * platform/gtk/LocalizedStringsGtk.cpp: 16 (WebCore::localizedMediaTimeDescription): 17 1 18 2013-02-11 Zan Dobersek <zdobersek@igalia.com> 2 19 -
trunk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
r142400 r142463 35 35 #include "IntSize.h" 36 36 #include "NotImplemented.h" 37 #include <wtf/MathExtras.h> 37 38 #include <wtf/text/CString.h> 38 39 #include <wtf/text/WTFString.h> … … 40 41 #include <glib/gi18n-lib.h> 41 42 #include <gtk/gtk.h> 42 #include <math.h>43 43 44 44 namespace WebCore { … … 627 627 return String::fromUTF8(_("indefinite time")); 628 628 629 int seconds = (int)fabsf(time);629 int seconds = static_cast<int>(abs(time)); 630 630 int days = seconds / (60 * 60 * 24); 631 631 int hours = seconds / (60 * 60);
Note: See TracChangeset
for help on using the changeset viewer.