From 26f8c3bb84c4afa20898c320f9b65577076d88f6 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Sun, 1 Mar 2020 09:22:24 +0100 Subject: Remove unnecessary const from (optional) RgbColor parameters --- src/widget/wcolorpicker.cpp | 6 +++--- src/widget/wcolorpicker.h | 6 +++--- src/widget/wcuemenupopup.cpp | 2 +- src/widget/wcuemenupopup.h | 2 +- src/widget/wtracktableview.cpp | 2 +- src/widget/wtracktableview.h | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/widget') diff --git a/src/widget/wcolorpicker.cpp b/src/widget/wcolorpicker.cpp index a2ba6d8d9c..a1adc31ae9 100644 --- a/src/widget/wcolorpicker.cpp +++ b/src/widget/wcolorpicker.cpp @@ -79,7 +79,7 @@ WColorPicker::WColorPicker(ColorOption colorOption, const ColorPalette& palette, } } -void WColorPicker::addColorButton(const mixxx::RgbColor::optional_t color, QGridLayout* pLayout, int row, int column) { +void WColorPicker::addColorButton(mixxx::RgbColor::optional_t color, QGridLayout* pLayout, int row, int column) { setLayout(pLayout); parented_ptr pColorButton = make_parented("", this); if (m_pStyle) { @@ -142,7 +142,7 @@ void WColorPicker::resetSelectedColor() { pButton->style()->polish(pButton); } -void WColorPicker::setSelectedColor(const mixxx::RgbColor::optional_t color) { +void WColorPicker::setSelectedColor(mixxx::RgbColor::optional_t color) { resetSelectedColor(); m_selectedColor = color; @@ -196,6 +196,6 @@ void WColorPicker::useColorSet(const ColorPalette& palette) { } } -void WColorPicker::slotColorPicked(const mixxx::RgbColor::optional_t color) { +void WColorPicker::slotColorPicked(mixxx::RgbColor::optional_t color) { setSelectedColor(color); } diff --git a/src/widget/wcolorpicker.h b/src/widget/wcolorpicker.h index 671be786b0..8c744c1385 100644 --- a/src/widget/wcolorpicker.h +++ b/src/widget/wcolorpicker.h @@ -20,17 +20,17 @@ class WColorPicker : public QWidget { explicit WColorPicker(ColorOption colorOption, const ColorPalette& palette, QWidget* parent = nullptr); void resetSelectedColor(); - void setSelectedColor(const mixxx::RgbColor::optional_t color); + void setSelectedColor(mixxx::RgbColor::optional_t color); void useColorSet(const ColorPalette& palette); signals: void colorPicked(mixxx::RgbColor::optional_t color); private slots: - void slotColorPicked(const mixxx::RgbColor::optional_t color); + void slotColorPicked(mixxx::RgbColor::optional_t color); private: - void addColorButton(const mixxx::RgbColor::optional_t color, QGridLayout* pLayout, int row, int column); + void addColorButton(mixxx::RgbColor::optional_t color, QGridLayout* pLayout, int row, int column); ColorOption m_colorOption; mixxx::RgbColor::optional_t m_selectedColor; ColorPalette m_palette; diff --git a/src/widget/wcuemenupopup.cpp b/src/widget/wcuemenupopup.cpp index 0d21dcdc8e..0ab8f54ac4 100644 --- a/src/widget/wcuemenupopup.cpp +++ b/src/widget/wcuemenupopup.cpp @@ -110,7 +110,7 @@ void WCueMenuPopup::slotEditLabel() { m_pCue->setLabel(m_pEditLabel->text()); } -void WCueMenuPopup::slotChangeCueColor(const mixxx::RgbColor::optional_t color) { +void WCueMenuPopup::slotChangeCueColor(mixxx::RgbColor::optional_t color) { VERIFY_OR_DEBUG_ASSERT(m_pCue != nullptr) { return; } diff --git a/src/widget/wcuemenupopup.h b/src/widget/wcuemenupopup.h index e052b948de..3c8094e8be 100644 --- a/src/widget/wcuemenupopup.h +++ b/src/widget/wcuemenupopup.h @@ -54,7 +54,7 @@ class WCueMenuPopup : public QWidget { private slots: void slotEditLabel(); void slotDeleteCue(); - void slotChangeCueColor(const mixxx::RgbColor::optional_t color); + void slotChangeCueColor(mixxx::RgbColor::optional_t color); private: CuePointer m_pCue; diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp index 562658d860..11791c1acb 100644 --- a/src/widget/wtracktableview.cpp +++ b/src/widget/wtracktableview.cpp @@ -1972,7 +1972,7 @@ void WTrackTableView::lockBpm(bool lock) { } } -void WTrackTableView::slotColorPicked(const mixxx::RgbColor::optional_t color) { +void WTrackTableView::slotColorPicked(mixxx::RgbColor::optional_t color) { TrackModel* trackModel = getTrackModel(); if (trackModel == nullptr) { return; diff --git a/src/widget/wtracktableview.h b/src/widget/wtracktableview.h index 03cb8c3cf3..fd6beae9d6 100644 --- a/src/widget/wtracktableview.h +++ b/src/widget/wtracktableview.h @@ -81,7 +81,7 @@ class WTrackTableView : public WLibraryTableView { void slotLockBpm(); void slotUnlockBpm(); void slotScaleBpm(int); - void slotColorPicked(const mixxx::RgbColor::optional_t color); + void slotColorPicked(mixxx::RgbColor::optional_t color); void slotClearBeats(); void slotClearPlayCount(); -- cgit v1.2.3