Skip to content

Commit

Permalink
ColorPickWidgetAbstract is an abstract class therefore Q_DISABLE_COPY…
Browse files Browse the repository at this point in the history
…_MOVE doesn't compile
  • Loading branch information
Petross404 committed Oct 21, 2021
1 parent c0a06a6 commit 8ef172e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/core/CutterCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ inline QString RzHexString(RVA size)
*/
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
# define Q_DISABLE_MOVE(Class) \
Class(Class &&w) = delete; \
Class &operator=(Class &&w) = delete;
Class(Class &&) = delete; \
Class &operator=(Class &&) = delete;

# define Q_DISABLE_COPY_MOVE(Class) \
Q_DISABLE_COPY(Class) \
Expand Down
7 changes: 0 additions & 7 deletions src/widgets/ColorPicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace ColorPickerHelpers {
class ColorPickWidgetAbstract : public QWidget
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorPickWidgetAbstract)

public:
ColorPickWidgetAbstract(QWidget *parent = nullptr) : QWidget(parent) {}
Expand Down Expand Up @@ -39,7 +38,6 @@ class ColorPicker;
class ColorPicker : public ColorPickerHelpers::ColorPickWidgetAbstract
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorPicker)

public:
explicit ColorPicker(QWidget *parent = nullptr);
Expand Down Expand Up @@ -99,7 +97,6 @@ namespace ColorPickerHelpers {
class ColorPickerWidget : public ColorPickWidgetAbstract
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorPickerWidget)

public:
ColorPickerWidget(QWidget *parent = nullptr);
Expand All @@ -125,7 +122,6 @@ class ColorPickerWidget : public ColorPickWidgetAbstract
class ColorShowWidget : public ColorPickWidgetAbstract
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorShowWidget)

public:
explicit ColorShowWidget(QWidget *parent = nullptr);
Expand All @@ -143,7 +139,6 @@ class ColorShowWidget : public ColorPickWidgetAbstract
class ColorPickArea : public ColorPickerWidget
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorPickArea)

public:
explicit ColorPickArea(QWidget *parent = nullptr);
Expand All @@ -162,7 +157,6 @@ class ColorPickArea : public ColorPickerWidget
class AlphaChannelBar : public ColorPickerWidget
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(AlphaChannelBar)

public:
AlphaChannelBar(QWidget *parent = nullptr) : ColorPickerWidget(parent) {}
Expand All @@ -185,7 +179,6 @@ class AlphaChannelBar : public ColorPickerWidget
class ColorValueBar : public ColorPickerWidget
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorValueBar)

public:
ColorValueBar(QWidget *parent = nullptr) : ColorPickerWidget(parent) {}
Expand Down
1 change: 0 additions & 1 deletion src/widgets/ColorThemeComboBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
class ColorThemeComboBox : public QComboBox
{
Q_OBJECT
Q_DISABLE_COPY_MOVE(ColorThemeComboBox)

public:
explicit ColorThemeComboBox(QWidget *parent = nullptr);
Expand Down

0 comments on commit 8ef172e

Please sign in to comment.