| Index: Source/core/svg/SVGPathByteStreamSource.h
|
| diff --git a/Source/core/svg/SVGPathByteStreamSource.h b/Source/core/svg/SVGPathByteStreamSource.h
|
| index c1189bf7e77cde9cde69dac64da0afcaba9f37f9..0875ef796175e507d9e77639d3663c0208173beb 100644
|
| --- a/Source/core/svg/SVGPathByteStreamSource.h
|
| +++ b/Source/core/svg/SVGPathByteStreamSource.h
|
| @@ -55,11 +55,11 @@ private:
|
| #if COMPILER(MSVC)
|
| #pragma warning(disable: 4701)
|
| #endif
|
| - template<typename DataType, typename ByteType>
|
| + template<typename DataType>
|
| DataType readType()
|
| {
|
| - ByteType data;
|
| - size_t typeSize = sizeof(ByteType);
|
| + ByteType<DataType> data;
|
| + size_t typeSize = sizeof(ByteType<DataType>);
|
|
|
| for (size_t i = 0; i < typeSize; ++i) {
|
| ASSERT(m_streamCurrent < m_streamEnd);
|
| @@ -70,25 +70,13 @@ private:
|
| return data.value;
|
| }
|
|
|
| - bool readFlag()
|
| - {
|
| - return readType<bool, BoolByte>();
|
| - }
|
| -
|
| - float readFloat()
|
| - {
|
| - return readType<float, FloatByte>();
|
| - }
|
| -
|
| - unsigned short readSVGSegmentType()
|
| - {
|
| - return readType<unsigned short, UnsignedShortByte>();
|
| - }
|
| -
|
| + bool readFlag() { return readType<bool>(); }
|
| + float readFloat() { return readType<float>(); }
|
| + unsigned short readSVGSegmentType() { return readType<unsigned short>(); }
|
| FloatPoint readFloatPoint()
|
| {
|
| - float x = readType<float, FloatByte>();
|
| - float y = readType<float, FloatByte>();
|
| + float x = readType<float>();
|
| + float y = readType<float>();
|
| return FloatPoint(x, y);
|
| }
|
|
|
|
|