Title: [198886] trunk/Source/WebCore
- Revision
- 198886
- Author
- achristen...@apple.com
- Date
- 2016-03-30 23:08:14 -0700 (Wed, 30 Mar 2016)
Log Message
Fix Windows build.
* platform/text/LineEnding.cpp:
make the char's and uint8_t's compile.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (198885 => 198886)
--- trunk/Source/WebCore/ChangeLog 2016-03-31 06:00:42 UTC (rev 198885)
+++ trunk/Source/WebCore/ChangeLog 2016-03-31 06:08:14 UTC (rev 198886)
@@ -1,5 +1,12 @@
2016-03-30 Alex Christensen <achristen...@webkit.org>
+ Fix Windows build.
+
+ * platform/text/LineEnding.cpp:
+ make the char's and uint8_t's compile.
+
+2016-03-30 Alex Christensen <achristen...@webkit.org>
+
Build fix.
* platform/text/LineEnding.cpp:
Modified: trunk/Source/WebCore/platform/text/LineEnding.cpp (198885 => 198886)
--- trunk/Source/WebCore/platform/text/LineEnding.cpp 2016-03-31 06:00:42 UTC (rev 198885)
+++ trunk/Source/WebCore/platform/text/LineEnding.cpp 2016-03-31 06:08:14 UTC (rev 198886)
@@ -39,7 +39,7 @@
class OutputBuffer {
public:
- virtual char* allocate(size_t size) = 0;
+ virtual uint8_t* allocate(size_t size) = 0;
virtual void copy(const CString&) = 0;
virtual ~OutputBuffer() { }
};
@@ -52,11 +52,11 @@
}
virtual ~CStringBuffer() { }
- char* allocate(size_t size) override
+ uint8_t* allocate(size_t size) override
{
char* ptr;
m_buffer = CString::newUninitialized(size, ptr);
- return ptr;
+ return reinterpret_cast<uint8_t*>(ptr);
}
void copy(const CString& source) override
@@ -128,7 +128,7 @@
}
p = from.data();
- char* q = buffer.allocate(newLen);
+ uint8_t* q = buffer.allocate(newLen);
// Make a copy of the string.
while (p < from.data() + from.length()) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes