Menu

#7 Does not compile for Plasma 5.21 Beta (5.20.90)

1.0
closed
Robert
None
2021-02-28
2021-01-25
No

Operating System: Arch Linux
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.9-arch1-1

It looks like the prePaintWindow function parameter changed its data type from int to std::chrono::milliseconds. I've attached a more complete log as well.

/home/skeithc/.cache/paru/clone/kwin-effect-shapecorners-git/src/shapecorners/shapecorners.cpp:208:48: error: cannot convert int to std::chrono::milliseconds {aka std::chrono::duration<long int, std::ratio<1, 1000> >}
  208 |         KWin::effects->prePaintWindow(w, data, time);
      |                                                ^~~~
      |                                                |
      |                                                int
In file included from /home/skeithc/.cache/paru/clone/kwin-effect-shapecorners-git/src/shapecorners/shapecorners.h:23,
                 from /home/skeithc/.cache/paru/clone/kwin-effect-shapecorners-git/src/shapecorners/dbus.h:5,
                 from /home/skeithc/.cache/paru/clone/kwin-effect-shapecorners-git/src/shapecorners/shapecorners.cpp:20:
/usr/include/kwineffects.h:838:102: note:   initializing argument 3 of virtual void KWin::EffectsHandler::prePaintWindow(KWin::EffectWindow*, KWin::WindowPrePaintData&, std::chrono::milliseconds)
  838 |     virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, std::chrono::milliseconds presentTime) = 0;
      |                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/home/skeithc/.cache/paru/clone/kwin-effect-shapecorners-git/src/shapecorners/shapecorners.cpp:228:44: error: cannot convert int to std::chrono::milliseconds {aka std::chrono::duration<long int, std::ratio<1, 1000> >}
  228 |     KWin::effects->prePaintWindow(w, data, time);
      |                                            ^~~~
      |                                            |
      |                                            int
1 Attachments

Discussion

  • Robert

    Robert - 2021-01-25

    Hi, thanks for reporting, I'll fix it once it hits stable.

     
  • Robert

    Robert - 2021-02-28
    • status: open --> closed
    • assigned_to: Robert
     
  • Robert

    Robert - 2021-02-28

    Fixed

     

Log in to post a comment.

MongoDB Logo MongoDB