Commit ca3cbbce authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[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
parent 29a49f86
......@@ -42,6 +42,9 @@ struct GammaRamp {
uint16_t *red = nullptr;
uint16_t *green = nullptr;
uint16_t *blue = nullptr;
private:
Q_DISABLE_COPY(GammaRamp)
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment