From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 6 Dec 2018 05:08:38 +0000 (+0900) Subject: [coco] Use override consistently (#2526) X-Git-Tag: nncc_backup~1180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e161c62791484797537558087d5102bd7c76b17d;p=platform%2Fcore%2Fml%2Fnnfw.git [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 --- 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);