From 59b21a01307f8c40a8264fc1aec1eecbeaa49511 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 21 Jan 2022 12:13:16 +0200 Subject: [PATCH] Fix -Wreorder-ctor --- src/backends/x11/standalone/eglbackend.h | 2 +- src/libkwineffects/kwinglutils.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backends/x11/standalone/eglbackend.h b/src/backends/x11/standalone/eglbackend.h index d115cd122c..d802540dba 100644 --- a/src/backends/x11/standalone/eglbackend.h +++ b/src/backends/x11/standalone/eglbackend.h @@ -68,8 +68,8 @@ protected: void onDamage() override; private: - EglBackend *m_backend; EglPixmapTexture *q; + EglBackend *m_backend; EGLImageKHR m_image = EGL_NO_IMAGE_KHR; }; diff --git a/src/libkwineffects/kwinglutils.cpp b/src/libkwineffects/kwinglutils.cpp index 59fd27e082..49a7c7e3d1 100644 --- a/src/libkwineffects/kwinglutils.cpp +++ b/src/libkwineffects/kwinglutils.cpp @@ -983,14 +983,14 @@ GLRenderTarget* GLRenderTarget::popRenderTarget() } GLRenderTarget::GLRenderTarget() - : mValid(false) - , mTexture(GL_TEXTURE_2D) + : mTexture(GL_TEXTURE_2D) + , mValid(false) { } GLRenderTarget::GLRenderTarget(const GLTexture& color) - : mValid(false) - , mTexture(color) + : mTexture(color) + , mValid(false) { // Make sure FBO is supported if (sSupported && !mTexture.isNull()) {