summaryrefslogtreecommitdiffstats
path: root/examples/embedded
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-05-22 14:19:39 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-14 05:43:25 +0000
commitdc0e17fa64bc77b803d28947767f6296c8bc804e (patch)
tree19deeedfc019e86c2af0314a41e07af888040be0 /examples/embedded
parente684a7a159ef889a9bc11b59d111dd4325281baf (diff)
Examples: Remove unnecessary Q_INIT_RESOURCE calls
Explicit calls to Q_INIT_RESOURCE are only needed for resources embedded in static libraries. See also https://doc.qt.io/qt-6/resources.html#explicit-loading-and-unloading-of-embedded-resources Change-Id: I06a24d1c04369eedc78ca60a6ca02ce33907d9e7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit eed17b3634a99b6f6f751830c6443094dd6b600b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/embedded')
-rw-r--r--examples/embedded/flightinfo/flightinfo.cpp2
-rw-r--r--examples/embedded/styleexample/main.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/examples/embedded/flightinfo/flightinfo.cpp b/examples/embedded/flightinfo/flightinfo.cpp
index 6a5eb55d99..f9d4b6e0c3 100644
--- a/examples/embedded/flightinfo/flightinfo.cpp
+++ b/examples/embedded/flightinfo/flightinfo.cpp
@@ -342,8 +342,6 @@ private:
int main(int argc, char **argv)
{
- Q_INIT_RESOURCE(flightinfo);
-
QApplication app(argc, argv);
FlightInfo w;
diff --git a/examples/embedded/styleexample/main.cpp b/examples/embedded/styleexample/main.cpp
index 2a7577e845..dba57e2d52 100644
--- a/examples/embedded/styleexample/main.cpp
+++ b/examples/embedded/styleexample/main.cpp
@@ -7,7 +7,6 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
- Q_INIT_RESOURCE(styleexample);
app.setApplicationName("style");
app.setOrganizationName("QtProject");