summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2020-02-25 15:37:53 +0800
committer Yi Kong <yikong@google.com> 2020-02-26 01:26:11 +0800
commitf4bb6ffef31444e07658bed5898bc68c269bca3d (patch)
tree290b9b6c6bd1ab8b16750bf5298e999c6a26f88f
parent61addf0da3ec9645c47279e11394d346f98093e5 (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.cpp8
-rw-r--r--libs/binder/include/binder/MemoryHeapBase.h10
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;