Fix -Wdeprecated-copy
ClosedPublic

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

Details

Reviewers
apol
Group Reviewers
KWin
Commits
R108:50c89d485870: 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; }
      |     ^~~~

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Jul 9 2019, 10:49 PM
Restricted Application added a project: KWin. · View Herald TranscriptJul 9 2019, 10:49 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Jul 9 2019, 10:49 PM
apol accepted this revision.Jul 9 2019, 11:00 PM
This revision is now accepted and ready to land.Jul 9 2019, 11:00 PM
This revision was automatically updated to reflect the committed changes.