diff options
author | 2020-02-25 22:37:18 +0000 | |
---|---|---|
committer | 2020-02-25 22:37:18 +0000 | |
commit | 5c96fc386766b7faba3b96dc359f1623882ad019 (patch) | |
tree | 73abcaec30c5e30de85700a2b6b2d6b04f17c25a | |
parent | 69d19ad86d62505fea32d03997c9723975855a79 (diff) | |
parent | 5f9520d6a6648004d13b2c70b7ac51919b2d6cd7 (diff) |
Merge "binder: fix inconsistent-missing-override warning." am: ab0b2a284e am: 5f9520d6a6
Change-Id: Icb1b3a251e5361a5d36fd26974286d6c24039bb1
-rw-r--r-- | libs/binder/IMemory.cpp | 8 | ||||
-rw-r--r-- | libs/binder/include/binder/MemoryHeapBase.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libs/binder/IMemory.cpp b/libs/binder/IMemory.cpp index c2bb811e9f..d8b44f957d 100644 --- a/libs/binder/IMemory.cpp +++ b/libs/binder/IMemory.cpp @@ -82,10 +82,10 @@ public: explicit BpMemoryHeap(const sp<IBinder>& impl); virtual ~BpMemoryHeap(); - virtual int getHeapID() const; - virtual void* getBase() const; - virtual size_t getSize() const; - virtual uint32_t getFlags() const; + int getHeapID() const override; + void* getBase() const override; + size_t getSize() const override; + uint32_t getFlags() const override; off_t getOffset() const override; private: diff --git a/libs/binder/include/binder/MemoryHeapBase.h b/libs/binder/include/binder/MemoryHeapBase.h index 3fccddcc59..edada3d1b5 100644 --- a/libs/binder/include/binder/MemoryHeapBase.h +++ b/libs/binder/include/binder/MemoryHeapBase.h @@ -57,14 +57,14 @@ public: virtual ~MemoryHeapBase(); /* implement IMemoryHeap interface */ - virtual int getHeapID() const; + int getHeapID() const override; /* virtual address of the heap. returns MAP_FAILED in case of error */ - virtual void* getBase() const; + void* getBase() const override; - virtual size_t getSize() const; - virtual uint32_t getFlags() const; - off_t getOffset() const override; + size_t getSize() const override; + uint32_t getFlags() const override; + off_t getOffset() const override; const char* getDevice() const; |