Changeset 110481 in webkit


Ignore:
Timestamp:
Mar 12, 2012 2:36:10 PM (12 years ago)
Author:
staikos@webkit.org
Message:

It doesn't make sense to return const unsigned, and GCC warns about it.
Remove const.
https://bugs.webkit.org/show_bug.cgi?id=80790

Reviewed by Antonio Gomes.

  • platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.h:

(WebCore::ComplexTextController::length):
(WebCore::ComplexTextController::numCodePoints):
(WebCore::ComplexTextController::offsetX):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r110480 r110481  
     12012-03-12  George Staikos  <staikos@webkit.org>
     2
     3        It doesn't make sense to return const unsigned, and GCC warns about it.
     4        Remove const.
     5        https://bugs.webkit.org/show_bug.cgi?id=80790
     6
     7        Reviewed by Antonio Gomes.
     8
     9        * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.h:
     10        (WebCore::ComplexTextController::length):
     11        (WebCore::ComplexTextController::numCodePoints):
     12        (WebCore::ComplexTextController::offsetX):
     13
    1142012-03-12  Beth Dakin  <bdakin@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.h

    r108733 r110481  
    8484
    8585    // Return the length of the array returned by |glyphs|
    86     const unsigned length() const { return m_item.num_glyphs; }
     86    unsigned length() const { return m_item.num_glyphs; }
    8787
    8888    // Return the offset for each of the glyphs. Note that this is translated
     
    9292
    9393    // return the number of code points in the current script run
    94     const unsigned numCodePoints() const { return m_item.item.length; }
     94    unsigned numCodePoints() const { return m_item.item.length; }
    9595
    9696    // Return the current pixel position of the controller.
    97     const unsigned offsetX() const { return m_offsetX; }
     97    unsigned offsetX() const { return m_offsetX; }
    9898
    9999    const FontPlatformData* fontPlatformDataForScriptRun() { return reinterpret_cast<FontPlatformData*>(m_item.font->userData); }
Note: See TracChangeset for help on using the changeset viewer.