diff options
author | 2020-02-25 15:37:53 +0800 | |
---|---|---|
committer | 2020-02-26 01:26:11 +0800 | |
commit | f4bb6ffef31444e07658bed5898bc68c269bca3d (patch) | |
tree | 290b9b6c6bd1ab8b16750bf5298e999c6a26f88f | |
parent | 61addf0da3ec9645c47279e11394d346f98093e5 (diff) |
binder: fix inconsistent-missing-override warning.
Some functions are marked as "override" while the rest are not.
No functionality change.
Test: TreeHugger
Change-Id: I7bcd785588feba0c514dcb473f29ea92784efee0
-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 222b32c921..84805ff3d6 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; |