Diffusion KWin 50c89d485870

Fix -Wdeprecated-copy

Authored by zzag on Jul 9 2019, 10:42 PM.

Description

Fix -Wdeprecated-copy

Summary:

/home/vlad/Workspace/KDE/src/kde/workspace/kwin/scripting/scriptedeffect.cpp:408:57: warning: implicitly-declared ‘constexpr KWin::FPx2& KWin::FPx2::operator=(const KWin::FPx2&)’ is deprecated [-Wdeprecated-copy]
  408 |         fpx2 = FPx2(value1.toNumber(), value2.toNumber());
      |                                                         ^
In file included from /home/vlad/Workspace/KDE/src/kde/workspace/kwin/scripting/scriptedeffect.h:24,
                 from /home/vlad/Workspace/KDE/src/kde/workspace/kwin/scripting/scriptedeffect.cpp:21:
/home/vlad/Workspace/KDE/src/kde/workspace/kwin/libkwineffects/kwinanimationeffect.h:39:5: note: because ‘KWin::FPx2’ has user-provided ‘KWin::FPx2::FPx2(const KWin::FPx2&)’
   39 |     FPx2(const FPx2 &other) { f[0] = other.f[0]; f[1] = other.f[1]; valid = other.valid; }
      |     ^~~~

Reviewers: KWin, apol

Reviewed By: apol

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D22361

Details

Committed
zzagJul 9 2019, 11:03 PM
Reviewer
apol
Differential Revision
D22361: Fix -Wdeprecated-copy
Parents
R108:cccb3456f302: Use QColor::darker/lighter instead of QColor::dark/light
Branches
Unknown
Tags
Unknown