diff options
author | Chris Craik <ccraik@google.com> | 2014-12-22 14:28:49 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-12-22 14:56:08 -0800 |
commit | e84a208317e0ed388fcdad1e6743c7849acb51b0 (patch) | |
tree | 8c057e6b6367a85790c30a118e6c8789c6bdf538 /libs/hwui/utils | |
parent | 07adacf4996c8ca494332ec938786fa15832c722 (diff) | |
download | frameworks_base-e84a208317e0ed388fcdad1e6743c7849acb51b0.zip frameworks_base-e84a208317e0ed388fcdad1e6743c7849acb51b0.tar.gz frameworks_base-e84a208317e0ed388fcdad1e6743c7849acb51b0.tar.bz2 |
Add overrides and switch to nullptr keyword
Changes generated with clang-modernize.
Additionally, fixed some struct-vs-class usage to make clang happy.
Change-Id: Ic6ef2427401ff1e794d26f21f7b44868fc75fb72
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/SortedList.h | 14 | ||||
-rw-r--r-- | libs/hwui/utils/SortedListImpl.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libs/hwui/utils/SortedList.h b/libs/hwui/utils/SortedList.h index 2fa890a..a2c8c52 100644 --- a/libs/hwui/utils/SortedList.h +++ b/libs/hwui/utils/SortedList.h @@ -93,13 +93,13 @@ public: } protected: - virtual void do_construct(void* storage, size_t num) const; - virtual void do_destroy(void* storage, size_t num) const; - virtual void do_copy(void* dest, const void* from, size_t num) const; - virtual void do_splat(void* dest, const void* item, size_t num) const; - virtual void do_move_forward(void* dest, const void* from, size_t num) const; - virtual void do_move_backward(void* dest, const void* from, size_t num) const; - virtual int do_compare(const void* lhs, const void* rhs) const; + virtual void do_construct(void* storage, size_t num) const override; + virtual void do_destroy(void* storage, size_t num) const override; + virtual void do_copy(void* dest, const void* from, size_t num) const override; + virtual void do_splat(void* dest, const void* item, size_t num) const override; + virtual void do_move_forward(void* dest, const void* from, size_t num) const override; + virtual void do_move_backward(void* dest, const void* from, size_t num) const override; + virtual int do_compare(const void* lhs, const void* rhs) const override; }; // class SortedList /////////////////////////////////////////////////////////////////////////////// diff --git a/libs/hwui/utils/SortedListImpl.h b/libs/hwui/utils/SortedListImpl.h index dc385b5..b101826 100644 --- a/libs/hwui/utils/SortedListImpl.h +++ b/libs/hwui/utils/SortedListImpl.h @@ -41,7 +41,7 @@ protected: virtual int do_compare(const void* lhs, const void* rhs) const = 0; private: - ssize_t _indexOrderOf(const void* item, size_t* order = 0) const; + ssize_t _indexOrderOf(const void* item, size_t* order = nullptr) const; // these are made private, because they can't be used on a SortedVector // (they don't have an implementation either) |