diff framework/Document.cpp @ 633:4612d44ae753 fix-static-analysis

Fixes from clang modernize-use-override
author Chris Cannam
date Thu, 22 Nov 2018 14:55:43 +0000
parents 10046d544e76
children e2715204feaa
line wrap: on
line diff
--- a/framework/Document.cpp	Fri Nov 09 15:38:49 2018 +0000
+++ b/framework/Document.cpp	Thu Nov 22 14:55:43 2018 +0000
@@ -268,7 +268,7 @@
         m_handler(handler) {
     }
 
-    virtual ~AdditionalModelConverter() { }
+    ~AdditionalModelConverter() override { }
 
     void
     setPrimaryLayers(vector<Layer *> layers) {
@@ -276,7 +276,7 @@
     }
 
     void
-    moreModelsAvailable(vector<Model *> models) {
+    moreModelsAvailable(vector<Model *> models) override {
         std::cerr << "AdditionalModelConverter::moreModelsAvailable: " << models.size() << " model(s)" << std::endl;
         // We can't automatically regenerate the additional models on
         // reload -- we should delete them instead
@@ -292,7 +292,7 @@
     }
 
     void
-    noMoreModelsAvailable() {
+    noMoreModelsAvailable() override {
         std::cerr << "AdditionalModelConverter::noMoreModelsAvailable" << std::endl;
         m_handler->layersCreated(this, m_primary, vector<Layer *>());
         delete this;