[Webkit-unassigned] [Bug 22178] Build errors in WebKit Cairo port.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 11 22:39:28 PST 2008


------- Comment #2 from bfulgham at gmail.com  2008-11-11 22:39 PDT -------
Some additional information:  The original form of this code was
const cairo_matrix_t* pattern_matrix
 = reinterpret_cast<const cairo_matrix_t*>(&patternTransform.inverse());

Visual Studio (2005 release) spits out a warning with this form:
C4238:  nonstandard extension used : class rvalue used as lvalue

See http://msdn.microsoft.com/en-us/library/7zyb9yb4(VS.80).aspx for some

This may work properly in future releases of MSVC, but the attached change is
simple, and works on multiple compilers.  By simply binding the return value of
the call to inverse to a const reference, the compiler sees what we want to do
and stops complaining.

const AffineTransform& inverse = patternTransform.inverse();
const cairo_matrix_t* pattern_matrix = reinterpret_cast<const

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list