[coco] Use override consistently (#2526)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 6 Dec 2018 05:08:38 +0000 (14:08 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 6 Dec 2018 05:08:38 +0000 (14:08 +0900)
With this commit, all the overridden methods in PlainWeightContextImpl
and DataImpl are marked with "override".

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/generic/src/IR/Data.cpp

index b42be15..19fd23a 100644 (file)
@@ -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);