[colorcorrection] Make GammaRamp non-copyable

Summary:
GammaRamp deletes an array in the destructor thus we have to either
declare our own copy constructor and copy assignment operator or
delete them both.

GammaRamp looks more like an identity rather than a value so both copy
constructor and copy assignment operator were deleted.

Test Plan: Compiles.

Reviewers: #kwin, romangg

Reviewed By: #kwin, romangg

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16023
This commit is contained in:
Vlad Zagorodniy 2018-10-07 20:35:14 +03:00
parent 29a49f8656
commit ca3cbbce84

View file

@ -42,6 +42,9 @@ struct GammaRamp {
uint16_t *red = nullptr;
uint16_t *green = nullptr;
uint16_t *blue = nullptr;
private:
Q_DISABLE_COPY(GammaRamp)
};
}