mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
BranchWatchDialog: Const Correctness
m_index_list_temp should not be imagined as a member of `BranchWatchDialog`, so it is now mutable to allow for more const member functions.
This commit is contained in:
@ -66,7 +66,7 @@ protected:
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private:
|
||||
void OnStartPause(bool checked);
|
||||
void OnStartPause(bool checked) const;
|
||||
void OnClearBranchWatch();
|
||||
void OnSave();
|
||||
void OnSaveAs();
|
||||
@ -76,27 +76,27 @@ private:
|
||||
void OnCodePathNotTaken();
|
||||
void OnBranchWasOverwritten();
|
||||
void OnBranchNotOverwritten();
|
||||
void OnWipeRecentHits();
|
||||
void OnWipeInspection();
|
||||
void OnTimeout();
|
||||
void OnEmulationStateChanged(Core::State new_state);
|
||||
void OnWipeRecentHits() const;
|
||||
void OnWipeInspection() const;
|
||||
void OnTimeout() const;
|
||||
void OnEmulationStateChanged(Core::State new_state) const;
|
||||
void OnThemeChanged();
|
||||
void OnHelp();
|
||||
void OnToggleAutoSave(bool checked);
|
||||
void OnHideShowControls(bool checked);
|
||||
void OnToggleIgnoreApploader(bool checked);
|
||||
void OnHideShowControls(bool checked) const;
|
||||
void OnToggleIgnoreApploader(bool checked) const;
|
||||
|
||||
void OnTableClicked(const QModelIndex& index);
|
||||
void OnTableContextMenu(const QPoint& pos);
|
||||
void OnTableHeaderContextMenu(const QPoint& pos);
|
||||
void OnTableDelete();
|
||||
void OnTableDeleteKeypress();
|
||||
void OnTableSetBLR();
|
||||
void OnTableSetNOP();
|
||||
void OnTableCopyAddress();
|
||||
void OnTableSetBreakpointBreak();
|
||||
void OnTableSetBreakpointLog();
|
||||
void OnTableSetBreakpointBoth();
|
||||
void OnTableClicked(const QModelIndex& index) const;
|
||||
void OnTableContextMenu(const QPoint& pos) const;
|
||||
void OnTableHeaderContextMenu(const QPoint& pos) const;
|
||||
void OnTableDelete() const;
|
||||
void OnTableDeleteKeypress() const;
|
||||
void OnTableSetBLR() const;
|
||||
void OnTableSetNOP() const;
|
||||
void OnTableCopyAddress() const;
|
||||
void OnTableSetBreakpointBreak() const;
|
||||
void OnTableSetBreakpointLog() const;
|
||||
void OnTableSetBreakpointBoth() const;
|
||||
|
||||
void ConnectSlots();
|
||||
void DisconnectSlots();
|
||||
@ -107,10 +107,10 @@ private:
|
||||
|
||||
public:
|
||||
// TODO: Step doesn't cause EmulationStateChanged to be emitted, so it has to call this manually.
|
||||
void Update();
|
||||
void Update() const;
|
||||
|
||||
private:
|
||||
void UpdateStatus();
|
||||
void UpdateStatus() const;
|
||||
void UpdateIcons();
|
||||
void Save(const Core::CPUThreadGuard& guard, const std::string& filepath);
|
||||
void Load(const Core::CPUThreadGuard& guard, const std::string& filepath);
|
||||
@ -151,6 +151,6 @@ private:
|
||||
|
||||
QIcon m_icn_full, m_icn_partial;
|
||||
|
||||
QModelIndexList m_index_list_temp;
|
||||
mutable QModelIndexList m_index_list_temp;
|
||||
std::optional<std::string> m_autosave_filepath;
|
||||
};
|
||||
|
Reference in New Issue
Block a user