Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
632:29bef008588e | 633:4612d44ae753 |
---|---|
266 Document::LayerCreationHandler *handler) : | 266 Document::LayerCreationHandler *handler) : |
267 m_doc(doc), | 267 m_doc(doc), |
268 m_handler(handler) { | 268 m_handler(handler) { |
269 } | 269 } |
270 | 270 |
271 virtual ~AdditionalModelConverter() { } | 271 ~AdditionalModelConverter() override { } |
272 | 272 |
273 void | 273 void |
274 setPrimaryLayers(vector<Layer *> layers) { | 274 setPrimaryLayers(vector<Layer *> layers) { |
275 m_primary = layers; | 275 m_primary = layers; |
276 } | 276 } |
277 | 277 |
278 void | 278 void |
279 moreModelsAvailable(vector<Model *> models) { | 279 moreModelsAvailable(vector<Model *> models) override { |
280 std::cerr << "AdditionalModelConverter::moreModelsAvailable: " << models.size() << " model(s)" << std::endl; | 280 std::cerr << "AdditionalModelConverter::moreModelsAvailable: " << models.size() << " model(s)" << std::endl; |
281 // We can't automatically regenerate the additional models on | 281 // We can't automatically regenerate the additional models on |
282 // reload -- we should delete them instead | 282 // reload -- we should delete them instead |
283 QStringList names; | 283 QStringList names; |
284 foreach (Model *model, models) { | 284 foreach (Model *model, models) { |
290 m_handler->layersCreated(this, m_primary, layers); | 290 m_handler->layersCreated(this, m_primary, layers); |
291 delete this; | 291 delete this; |
292 } | 292 } |
293 | 293 |
294 void | 294 void |
295 noMoreModelsAvailable() { | 295 noMoreModelsAvailable() override { |
296 std::cerr << "AdditionalModelConverter::noMoreModelsAvailable" << std::endl; | 296 std::cerr << "AdditionalModelConverter::noMoreModelsAvailable" << std::endl; |
297 m_handler->layersCreated(this, m_primary, vector<Layer *>()); | 297 m_handler->layersCreated(this, m_primary, vector<Layer *>()); |
298 delete this; | 298 delete this; |
299 } | 299 } |
300 | 300 |