Commit 22ade9b6 authored by cwzwarich@webkit.org's avatar cwzwarich@webkit.org

2008-10-24 Cameron Zwarich <zwarich@apple.com>

        Reviewed by Sam Weinig.

        Remove some C-style casts.

        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::addViewSourceToken):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 44331f8b
2008-10-24 Cameron Zwarich <zwarich@apple.com>
Reviewed by Sam Weinig.
Remove some C-style casts.
* html/HTMLViewSourceDocument.cpp:
(WebCore::HTMLViewSourceDocument::addViewSourceToken):
2008-10-24 Darin Adler <darin@apple.com>
- finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
......
......@@ -129,7 +129,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
for (unsigned i = 0; i < size; i++) {
if (guide->at(i) == 'a' || guide->at(i) == 'x' || guide->at(i) == 'v') {
// Add in the string.
addText(String((UChar*)(guide->data()) + begin, i - begin), classNameStr);
addText(String(static_cast<UChar*>(guide->data()) + begin, i - begin), classNameStr);
begin = i + 1;
......@@ -164,7 +164,7 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
// Add in any string that might be left.
if (begin < size)
addText(String((UChar*)(guide->data()) + begin, size - begin), classNameStr);
addText(String(static_cast<UChar*>(guide->data()) + begin, size - begin), classNameStr);
// Add in the end tag.
addText(">", classNameStr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment