Fix a few compile warnings

This commit is contained in:
Méven Car 2021-08-13 20:55:39 +02:00
parent 3982f8399f
commit c5907e8f36
4 changed files with 6 additions and 3 deletions

View file

@ -551,13 +551,13 @@ public:
void setText(const QString& text) override;
EffectFrameStyle style() const override {
return m_style;
};
}
Plasma::FrameSvg& frame() {
return m_frame;
}
bool isStatic() const {
return m_static;
};
}
void finalRender(QRegion region, double opacity, double frameOpacity) const;
void setShader(GLShader* shader) override {
m_shader = shader;

View file

@ -69,6 +69,7 @@ void FallApartEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& data,
void FallApartEffect::deform(EffectWindow *w, int mask, WindowPaintData &data, WindowQuadList &quads)
{
Q_UNUSED(w)
Q_UNUSED(mask)
auto animationIt = windows.constFind(w);
if (animationIt != windows.constEnd() && isRealWindow(w)) {
const qreal t = animationIt->progress;

View file

@ -131,7 +131,7 @@ void KWIN_EXPORT ungrabXKeyboard();
*/
qreal KWIN_EXPORT qPainterEffectiveDevicePixelRatio(const QPainter *painter);
static inline QRegion KWIN_EXPORT mapRegion(const QMatrix4x4 &matrix, const QRegion &region)
static inline QRegion mapRegion(const QMatrix4x4 &matrix, const QRegion &region)
{
QRegion result;
for (const QRect &rect : region) {

View file

@ -157,6 +157,8 @@ void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
void Clipboard::x11OffersChanged(const QStringList &added, const QStringList &removed)
{
Q_UNUSED(added)
Q_UNUSED(removed)
m_waitingForTargets = false;
X11Source *source = x11Source();
if (!source) {