Mercurial > hg > svgui
diff view/ViewManager.h @ 1406:a18e78b9c78b fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:52:27 +0000 |
parents | 646e713a4632 |
children | de41a11cabc2 |
line wrap: on
line diff
--- a/view/ViewManager.h Thu Nov 22 14:55:38 2018 +0000 +++ b/view/ViewManager.h Mon Nov 26 13:52:27 2018 +0000 @@ -81,8 +81,8 @@ ViewManager(); virtual ~ViewManager(); - void setAudioPlaySource(AudioPlaySource *source); - void setAudioRecordTarget(AudioRecordTarget *target); + void setAudioPlaySource(AudioPlaySource *source) override; + void setAudioRecordTarget(AudioRecordTarget *target) override; bool isPlaying() const; bool isRecording() const; @@ -96,22 +96,22 @@ Model *getPlaybackModel() const; void setPlaybackModel(Model *); - sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const; - sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const; + sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const override; + sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const override; bool haveInProgressSelection() const; const Selection &getInProgressSelection(bool &exclusive) const; void setInProgressSelection(const Selection &selection, bool exclusive); void clearInProgressSelection(); - const MultiSelection &getSelection() const; + const MultiSelection &getSelection() const override; - const MultiSelection::SelectionList &getSelections() const; + const MultiSelection::SelectionList &getSelections() const override; void setSelection(const Selection &selection); void addSelection(const Selection &selection); void removeSelection(const Selection &selection); void clearSelections(); - sv_frame_t constrainFrameToSelection(sv_frame_t frame) const; + sv_frame_t constrainFrameToSelection(sv_frame_t frame) const override; /** * Adding a selection normally emits the selectionChangedByUser @@ -126,7 +126,7 @@ * selected area, return the next selection after the given frame. * Return the empty selection if no appropriate selection is found. */ - Selection getContainingSelection(sv_frame_t frame, bool defaultToFollowing) const; + Selection getContainingSelection(sv_frame_t frame, bool defaultToFollowing) const override; Clipboard &getClipboard() { return m_clipboard; } @@ -149,16 +149,16 @@ /// Clear all current view-specific overrides void clearToolModeOverrides(); - bool getPlayLoopMode() const { return m_playLoopMode; } + bool getPlayLoopMode() const override { return m_playLoopMode; } void setPlayLoopMode(bool on); - bool getPlaySelectionMode() const { return m_playSelectionMode; } + bool getPlaySelectionMode() const override { return m_playSelectionMode; } void setPlaySelectionMode(bool on); - bool getPlaySoloMode() const { return m_playSoloMode; } + bool getPlaySoloMode() const override { return m_playSoloMode; } void setPlaySoloMode(bool on); - bool getAlignMode() const { return m_alignMode; } + bool getAlignMode() const override { return m_alignMode; } void setAlignMode(bool on); void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; } @@ -354,9 +354,9 @@ public: SetSelectionCommand(ViewManager *vm, const MultiSelection &ms); virtual ~SetSelectionCommand(); - virtual void execute(); - virtual void unexecute(); - virtual QString getName() const; + void execute() override; + void unexecute() override; + QString getName() const override; protected: ViewManager *m_vm;