Changeset 52733 in webkit


Ignore:
Timestamp:
Jan 4, 2010 7:33:41 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-04 Yongjun Zhang <yongjun.zhang@nokia.com>

Reviewed by Laszlo Gombos.

https://bugs.webkit.org/show_bug.cgi?id=29048
[Qt] make RenderStyle.h compile in winscw compiler.

Change compareEqual to a macro in Winscw compiler to get around "illegal operand"
error when compareEqual is defined as template.

The compiler bug is reported at:
https://xdabug001.ext.nokia.com/bugzilla/show_bug.cgi?id=10447

  • rendering/style/RenderStyle.h:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52731 r52733  
     12010-01-04  Yongjun Zhang  <yongjun.zhang@nokia.com>
     2
     3        Reviewed by Laszlo Gombos.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=29048
     6        [Qt] make RenderStyle.h compile in winscw compiler.
     7
     8        Change compareEqual to a macro in Winscw compiler to get around "illegal operand"
     9        error when compareEqual is defined as template.
     10
     11        The compiler bug is reported at:
     12        https://xdabug001.ext.nokia.com/bugzilla/show_bug.cgi?id=10447
     13
     14        * rendering/style/RenderStyle.h:
     15
    1162010-01-04  Maciej Stachowiak  <mjs@apple.com>
    217
  • trunk/WebCore/rendering/style/RenderStyle.h

    r52521 r52733  
    9090#endif
    9191
     92#if COMPILER(WINSCW)
     93#define compareEqual(t, u)      ((t) == (u))
     94#else
    9295template<typename T, typename U> inline bool compareEqual(const T& t, const U& u) { return t == static_cast<T>(u); }
     96#endif
    9397
    9498#define SET_VAR(group, variable, value) \
Note: See TracChangeset for help on using the changeset viewer.