[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:
parent
29a49f8656
commit
ca3cbbce84
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ struct GammaRamp {
|
|||
uint16_t *red = nullptr;
|
||||
uint16_t *green = nullptr;
|
||||
uint16_t *blue = nullptr;
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(GammaRamp)
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue