Changeset 173271 in webkit


Ignore:
Timestamp:
Sep 4, 2014 12:54:54 PM (10 years ago)
Author:
andersca@apple.com
Message:

Make hash table classes final
https://bugs.webkit.org/show_bug.cgi?id=136540

Reviewed by Antti Koivisto.

We don't want anybody inheriting from these classes, so make them final.

  • wtf/HashCountedSet.h:
  • wtf/HashMap.h:
  • wtf/HashSet.h:
Location:
trunk/Source/WTF
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r173268 r173271  
     12014-09-04  Anders Carlsson  <andersca@apple.com>
     2
     3        Make hash table classes final
     4        https://bugs.webkit.org/show_bug.cgi?id=136540
     5
     6        Reviewed by Antti Koivisto.
     7
     8        We don't want anybody inheriting from these classes, so make them final.
     9
     10        * wtf/HashCountedSet.h:
     11        * wtf/HashMap.h:
     12        * wtf/HashSet.h:
     13
    1142014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
    215
  • trunk/Source/WTF/wtf/HashCountedSet.h

    r157077 r173271  
    2929
    3030    template<typename Value, typename HashFunctions = typename DefaultHash<Value>::Hash, typename Traits = HashTraits<Value>>
    31     class HashCountedSet {
     31    class HashCountedSet final {
    3232        WTF_MAKE_FAST_ALLOCATED;
    3333    private:
  • trunk/Source/WTF/wtf/HashMap.h

    r171049 r173271  
    3434template<typename KeyArg, typename MappedArg, typename HashArg = typename DefaultHash<KeyArg>::Hash,
    3535    typename KeyTraitsArg = HashTraits<KeyArg>, typename MappedTraitsArg = HashTraits<MappedArg>>
    36 class HashMap {
     36class HashMap final {
    3737    WTF_MAKE_FAST_ALLOCATED;
    3838private:
  • trunk/Source/WTF/wtf/HashSet.h

    r170774 r173271  
    3333
    3434    template<typename ValueArg, typename HashArg = typename DefaultHash<ValueArg>::Hash,
    35         typename TraitsArg = HashTraits<ValueArg>> class HashSet {
     35        typename TraitsArg = HashTraits<ValueArg>> class HashSet final {
    3636        WTF_MAKE_FAST_ALLOCATED;
    3737    private:
Note: See TracChangeset for help on using the changeset viewer.