Mercurial > hg > svapp
comparison framework/Document.h @ 634:163573a73ebe fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:53:26 +0000 |
parents | 7d3a6357ce64 |
children | a2bf5e6c54ce |
comparison
equal
deleted
inserted
replaced
633:4612d44ae753 | 634:163573a73ebe |
---|---|
300 */ | 300 */ |
301 bool isIncomplete() const { return m_isIncomplete; } | 301 bool isIncomplete() const { return m_isIncomplete; } |
302 | 302 |
303 void setIncomplete(bool i) { m_isIncomplete = i; } | 303 void setIncomplete(bool i) { m_isIncomplete = i; } |
304 | 304 |
305 void toXml(QTextStream &, QString indent, QString extraAttributes) const; | 305 void toXml(QTextStream &, QString indent, QString extraAttributes) const override; |
306 void toXmlAsTemplate(QTextStream &, QString indent, QString extraAttributes) const; | 306 void toXmlAsTemplate(QTextStream &, QString indent, QString extraAttributes) const; |
307 | 307 |
308 signals: | 308 signals: |
309 void layerAdded(Layer *); | 309 void layerAdded(Layer *); |
310 void layerRemoved(Layer *); | 310 void layerRemoved(Layer *); |
394 { | 394 { |
395 public: | 395 public: |
396 AddLayerCommand(Document *d, View *view, Layer *layer); | 396 AddLayerCommand(Document *d, View *view, Layer *layer); |
397 virtual ~AddLayerCommand(); | 397 virtual ~AddLayerCommand(); |
398 | 398 |
399 virtual void execute(); | 399 void execute() override; |
400 virtual void unexecute(); | 400 void unexecute() override; |
401 virtual QString getName() const; | 401 QString getName() const override; |
402 | 402 |
403 protected: | 403 protected: |
404 Document *m_d; | 404 Document *m_d; |
405 View *m_view; // I don't own this | 405 View *m_view; // I don't own this |
406 Layer *m_layer; // Document owns this, but I determine its lifespan | 406 Layer *m_layer; // Document owns this, but I determine its lifespan |
412 { | 412 { |
413 public: | 413 public: |
414 RemoveLayerCommand(Document *d, View *view, Layer *layer); | 414 RemoveLayerCommand(Document *d, View *view, Layer *layer); |
415 virtual ~RemoveLayerCommand(); | 415 virtual ~RemoveLayerCommand(); |
416 | 416 |
417 virtual void execute(); | 417 void execute() override; |
418 virtual void unexecute(); | 418 void unexecute() override; |
419 virtual QString getName() const; | 419 QString getName() const override; |
420 | 420 |
421 protected: | 421 protected: |
422 Document *m_d; | 422 Document *m_d; |
423 View *m_view; // I don't own this | 423 View *m_view; // I don't own this |
424 Layer *m_layer; // Document owns this, but I determine its lifespan | 424 Layer *m_layer; // Document owns this, but I determine its lifespan |