Fix typo in QWasmOffscre*e*nSurface

Change-Id: I34a84e11c7e2eb37e2f66d7c96fd1c2bdd77a351
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Mikolaj Boc 2022-11-28 15:32:03 +01:00
parent 39473f9210
commit a38fe10fff
3 changed files with 6 additions and 7 deletions

View File

@ -215,7 +215,7 @@ QPlatformInputContext *QWasmIntegration::inputContext() const
QPlatformOffscreenSurface *QWasmIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const QPlatformOffscreenSurface *QWasmIntegration::createPlatformOffscreenSurface(QOffscreenSurface *surface) const
{ {
return new QWasmOffscrenSurface(surface); return new QWasmOffscreenSurface(surface);
} }
QPlatformFontDatabase *QWasmIntegration::fontDatabase() const QPlatformFontDatabase *QWasmIntegration::fontDatabase() const

View File

@ -5,12 +5,11 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
QWasmOffscrenSurface::QWasmOffscrenSurface(QOffscreenSurface *offscreenSurface) QWasmOffscreenSurface::QWasmOffscreenSurface(QOffscreenSurface *offscreenSurface)
:QPlatformOffscreenSurface(offscreenSurface) :QPlatformOffscreenSurface(offscreenSurface)
{ {
} }
QWasmOffscrenSurface::~QWasmOffscrenSurface() = default; QWasmOffscreenSurface::~QWasmOffscreenSurface() = default;
QT_END_NAMESPACE QT_END_NAMESPACE

View File

@ -9,11 +9,11 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QOffscreenSurface; class QOffscreenSurface;
class QWasmOffscrenSurface : public QPlatformOffscreenSurface class QWasmOffscreenSurface final : public QPlatformOffscreenSurface
{ {
public: public:
explicit QWasmOffscrenSurface(QOffscreenSurface *offscreenSurface); explicit QWasmOffscreenSurface(QOffscreenSurface *offscreenSurface);
~QWasmOffscrenSurface(); ~QWasmOffscreenSurface() final;
private: private:
}; };