summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintplugin.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-07-26 19:49:04 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-04 22:38:00 +0000
commitafec50df6ff462f95406fe103e802a7eb974c76a (patch)
treeea4a6bd0ca37e8382fca0bda1b502f30ea734fa7 /src/printsupport/kernel/qplatformprintplugin.cpp
parent5d6bc9140ed53eb59e28410e0900f8e07f46d4bd (diff)
Fix several more improperly placed #include moc
Like commit qtbase/638893bea083b619b73b33a7dd5589fb2c4c4242. Script to find them: git grep -l '#include.*moc' \*.cpp \*.mm | \ xargs awk '/QT_BEGIN_NAMESPACE/ { i=1 } /QT_END_NAMESPACE/ { i=0 } /#include.*moc/ && i { print ARGV[ARGIND], $0 }' Change-Id: I6f936da6f6e84d649f70fffd17058fd05cfc5c6d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit a8ebadac593572601adff912ca12047c5a980371) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/printsupport/kernel/qplatformprintplugin.cpp')
-rw-r--r--src/printsupport/kernel/qplatformprintplugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/printsupport/kernel/qplatformprintplugin.cpp b/src/printsupport/kernel/qplatformprintplugin.cpp
index 79aaa5bb3c..c48e5f65bf 100644
--- a/src/printsupport/kernel/qplatformprintplugin.cpp
+++ b/src/printsupport/kernel/qplatformprintplugin.cpp
@@ -10,16 +10,16 @@
#ifndef QT_NO_PRINTER
-QT_BEGIN_NAMESPACE
-
-using namespace Qt::StringLiterals;
-
#if defined(Q_OS_MACOS)
Q_IMPORT_PLUGIN(QCocoaPrinterSupportPlugin)
#elif defined(Q_OS_WIN)
Q_IMPORT_PLUGIN(QWindowsPrinterSupportPlugin)
#endif
+QT_BEGIN_NAMESPACE
+
+using namespace Qt::StringLiterals;
+
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
(QPlatformPrinterSupportFactoryInterface_iid, "/printsupport"_L1, Qt::CaseInsensitive))