From e161c62791484797537558087d5102bd7c76b17d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 6 Dec 2018 14:08:38 +0900 Subject: [PATCH] [coco] Use override consistently (#2526) With this commit, all the overridden methods in PlainWeightContextImpl and DataImpl are marked with "override". Signed-off-by: Jonghyun Park --- contrib/coco/generic/src/IR/Data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/coco/generic/src/IR/Data.cpp b/contrib/coco/generic/src/IR/Data.cpp index b42be15..19fd23a 100644 --- a/contrib/coco/generic/src/IR/Data.cpp +++ b/contrib/coco/generic/src/IR/Data.cpp @@ -128,7 +128,7 @@ public: _blob->allocate(bag, sizeof(T)); } - void allocate(const coco::KernelObject *obj) + void allocate(const coco::KernelObject *obj) override { assert(obj != nullptr); auto bag = obj->bag(); @@ -194,7 +194,7 @@ struct DataImpl final : public coco::Data bool allocated(const coco::Bag *b) const override { return _blob->at(b) != nullptr; } - void release(const coco::Bag *b) + void release(const coco::Bag *b) override { assert(allocated(b)); _blob->release(b); -- 2.7.4