Skip to content

Commit

Permalink
these can be const
Browse files Browse the repository at this point in the history
  • Loading branch information
eteran committed Mar 21, 2024
1 parent 61aec75 commit c69406c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/ODbgRegisterView/RegisterView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ QList<ValueField *> ODBRegView::valueFields() const {
return allValues;
}

void ODBRegView::updateFieldsPalette() {
void ODBRegView::updateFieldsPalette() const {
Q_FOREACH (ValueField *field, valueFields()) {
field->updatePalette();
}
Expand All @@ -584,7 +584,7 @@ ValueField *ODBRegView::selectedField() const {
return nullptr;
}

void ODBRegView::selectAField() {
void ODBRegView::selectAField() const {
const QList<ValueField *> fields = valueFields();
if (!fields.isEmpty()) {
fields.front()->select();
Expand Down
4 changes: 2 additions & 2 deletions plugins/ODbgRegisterView/RegisterView.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ODBRegView : public QScrollArea {
[[nodiscard]] QList<ValueField *> valueFields() const;
void groupHidden(RegisterGroup *group);
void saveState(const QString &settings) const;
void selectAField();
void selectAField() const;
void setModel(RegisterViewModelBase::Model *model);
void showMenu(const QPoint &position, const QList<QAction *> &additionalItems = {}) const;

Expand All @@ -88,7 +88,7 @@ class ODBRegView : public QScrollArea {

private:
[[nodiscard]] ValueField *selectedField() const;
void updateFieldsPalette();
void updateFieldsPalette() const;
void keyPressEvent(QKeyEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void updateFont();
Expand Down

0 comments on commit c69406c

Please sign in to comment.