⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243884 in webkit


Ignore:
Timestamp:
Apr 4, 2019, 11:45:10 AM (7 years ago)
Author:
Chris Dumez
Message:

Unreviewed, fix iOS build with recent SDKs.

std::ptr_fun() is deprecated.

  • platform/ios/LegacyTileGrid.mm:

(WebCore::LegacyTileGrid::dropDistantTiles):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243868 r243884  
     12019-04-04  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, fix iOS build with recent SDKs.
     4
     5        std::ptr_fun() is deprecated.
     6
     7        * platform/ios/LegacyTileGrid.mm:
     8        (WebCore::LegacyTileGrid::dropDistantTiles):
     9
    1102019-04-04  Antoine Quint  <graouts@apple.com>
    211
  • trunk/Source/WebCore/platform/ios/LegacyTileGrid.mm

    r237266 r243884  
    131131            continue;
    132132        toRemove.append(std::make_pair(distance, index));
     133#pragma clang diagnostic push
     134#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    133135        std::push_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
    134136        if (toRemove.size() > tilesToRemoveCount) {
    135137            std::pop_heap(toRemove.begin(), toRemove.end(), std::ptr_fun(isFartherAway<TileIndex>));
     138#pragma clang diagnostic pop
    136139            toRemove.removeLast();
    137140        }
Note: See TracChangeset for help on using the changeset viewer.