From e84a208317e0ed388fcdad1e6743c7849acb51b0 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 22 Dec 2014 14:28:49 -0800 Subject: 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 --- libs/hwui/PathCache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/hwui/PathCache.h') diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h index b0f00c702c44..ecd3712ce6eb 100644 --- a/libs/hwui/PathCache.h +++ b/libs/hwui/PathCache.h @@ -87,7 +87,7 @@ struct PathTexture: public Texture { } void clearTask() { - if (mTask != NULL) { + if (mTask != nullptr) { mTask.clear(); } } @@ -165,7 +165,7 @@ public: * Used as a callback when an entry is removed from the cache. * Do not invoke directly. */ - void operator()(PathDescription& path, PathTexture*& texture); + void operator()(PathDescription& path, PathTexture*& texture) override; /** * Clears the cache. This causes all textures to be deleted. @@ -292,7 +292,7 @@ private: PathProcessor(Caches& caches); ~PathProcessor() { } - virtual void onProcess(const sp >& task); + virtual void onProcess(const sp >& task) override; private: uint32_t mMaxTextureSize; -- cgit v1.2.3-59-g8ed1b