Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ int main(int argc, char *argv[])
QGuiApplication::setQuitOnLastWindowClosed(false);

QGuiApplication app(argc, argv);
qRegisterMetaType<QW_NAMESPACE::qw_buffer*>("qw_buffer*");

app.setOrganizationName("deepin");
app.setApplicationName("treeland");
Expand Down
7 changes: 4 additions & 3 deletions src/modules/prelaunch-splash/prelaunchsplash.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

#pragma once

#include <wayland-server-core.h>

Check warning on line 6 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <wayland-server-core.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <wserver.h>

Check warning on line 7 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <wserver.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <qwbuffer.h>

Check warning on line 8 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <qwbuffer.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <memory>

Check warning on line 9 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <memory> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <QObject>

Check warning on line 11 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <QObject> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include <memory>
Q_MOC_INCLUDE(<qwbuffer.h>)

Check warning on line 13 in src/modules/prelaunch-splash/prelaunchsplash.h

View workflow job for this annotation

GitHub Actions / cppcheck

syntax error

WAYLIB_SERVER_USE_NAMESPACE
QW_USE_NAMESPACE
Expand All @@ -23,7 +23,6 @@
class qw_display;
class qw_buffer;
QW_END_NAMESPACE
Q_DECLARE_OPAQUE_POINTER(QW_NAMESPACE::qw_buffer *)

class PrelaunchSplashPrivate;
struct wl_global;
Expand Down Expand Up @@ -52,3 +51,5 @@
private:
std::unique_ptr<PrelaunchSplashPrivate> d;
};

Q_DECLARE_OPAQUE_POINTER(QW_NAMESPACE::qw_buffer*)
9 changes: 4 additions & 5 deletions waylib/src/server/qtquick/wbufferitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@

#pragma once

#include <wglobal.h>

Check warning on line 6 in waylib/src/server/qtquick/wbufferitem.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <wglobal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <wtextureproviderprovider.h>

Check warning on line 7 in waylib/src/server/qtquick/wbufferitem.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <wtextureproviderprovider.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <qwglobal.h>

Check warning on line 8 in waylib/src/server/qtquick/wbufferitem.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <qwglobal.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <qwbuffer.h>

Check warning on line 9 in waylib/src/server/qtquick/wbufferitem.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <qwbuffer.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

Q_MOC_INCLUDE(<qwbuffer.h>)

#include <QQuickItem>
#include <QVariant>

QW_BEGIN_NAMESPACE
class qw_buffer;
QW_END_NAMESPACE
Q_DECLARE_OPAQUE_POINTER(QW_NAMESPACE::qw_buffer*)

QT_BEGIN_NAMESPACE
class QSGTextureProvider;
QT_END_NAMESPACE
Expand Down Expand Up @@ -60,3 +58,4 @@
WAYLIB_SERVER_END_NAMESPACE

Q_DECLARE_METATYPE(WAYLIB_SERVER_NAMESPACE::WBufferItem*)
Q_DECLARE_OPAQUE_POINTER(QW_NAMESPACE::qw_buffer*)
Loading