summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmintegration.cpp
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-08-17 08:38:54 +0200
committerMikolaj Boc <mikolaj.boc@qt.io>2022-10-05 00:36:41 +0200
commit9bf689e875ce1f5e80696cbc86d446074b01c705 (patch)
tree0d6f0c32cffb872fac60e6e98e71705e78fad97e /src/plugins/platforms/wasm/qwasmintegration.cpp
parentb9887d51c396d126dd1dfc67a18a7de361db205b (diff)
Remove dead code & cull public API in WASM compositor
- Remove the manual destroy methods - destructor should handle destruction - Remove the unused enum QWasmStateFlag - Make public API private where possible - Adjust handleTouch->processTouch to keep consistency with other process methods - Remove dead fields in compositor - Don't keep a dead screen entry in m_screens in qwasmintegration Change-Id: I98caf4dbdda5ebd25c4a9c22a40140c7ed1d7aa7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmintegration.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmintegration.cpp b/src/plugins/platforms/wasm/qwasmintegration.cpp
index a29e18e98a..2cec4821f0 100644
--- a/src/plugins/platforms/wasm/qwasmintegration.cpp
+++ b/src/plugins/platforms/wasm/qwasmintegration.cpp
@@ -311,6 +311,7 @@ void QWasmIntegration::removeScreen(const emscripten::val &element)
return;
}
it->second->deleteScreen();
+ m_screens.erase(it);
}
void QWasmIntegration::resizeScreen(const emscripten::val &element)