Changeset 151141 in webkit


Ignore:
Timestamp:
Jun 3, 2013 3:47:43 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[harfbuzz] WebKit fails to build with MinGW compiler because of invalid cast in HarfBuzzShaper.cpp
https://bugs.webkit.org/show_bug.cgi?id=108373

Patch by Paweł Forysiuk <tuxator@o2.pl> on 2013-06-03
Reviewed by Darin Adler.

Fix building on platforms where UChar is defined as wchar_t.

  • platform/graphics/harfbuzz/HarfBuzzShaper.cpp:

(WebCore::HarfBuzzShaper::shapeHarfBuzzRuns):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r151140 r151141  
     12013-06-03  Paweł Forysiuk  <tuxator@o2.pl>
     2
     3        [harfbuzz] WebKit fails to build with MinGW compiler because of invalid cast in HarfBuzzShaper.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=108373
     5
     6        Reviewed by Darin Adler.
     7
     8        Fix building on platforms where UChar is defined as wchar_t.
     9
     10
     11        * platform/graphics/harfbuzz/HarfBuzzShaper.cpp:
     12        (WebCore::HarfBuzzShaper::shapeHarfBuzzRuns):
     13
    1142013-06-03  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp

    r146855 r151141  
    481481            upperText.makeUpper();
    482482            currentFontData = m_font->glyphDataForCharacter(upperText[0], false, SmallCapsVariant).fontData;
    483             hb_buffer_add_utf16(harfBuzzBuffer.get(), upperText.characters(), currentRun->numCharacters(), 0, currentRun->numCharacters());
     483            hb_buffer_add_utf16(harfBuzzBuffer.get(), reinterpret_cast<const uint16_t*>(upperText.characters()), currentRun->numCharacters(), 0, currentRun->numCharacters());
    484484        } else
    485             hb_buffer_add_utf16(harfBuzzBuffer.get(), m_normalizedBuffer.get() + currentRun->startIndex(), currentRun->numCharacters(), 0, currentRun->numCharacters());
     485            hb_buffer_add_utf16(harfBuzzBuffer.get(), reinterpret_cast<const uint16_t*>(m_normalizedBuffer.get() + currentRun->startIndex()), currentRun->numCharacters(), 0, currentRun->numCharacters());
    486486
    487487        FontPlatformData* platformData = const_cast<FontPlatformData*>(&currentFontData->platformData());
Note: See TracChangeset for help on using the changeset viewer.