summaryrefslogtreecommitdiffstats
path: root/examples/corelib/ipc/localfortuneclient/main.cpp
diff options
context:
space:
mode:
authorRym Bouabid <rym.bouabid@qt.io>2023-09-13 17:12:20 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-20 18:36:44 +0000
commit49eb2d1d8e21c0748075021b655df8d094ef61d6 (patch)
treec07e0eb774ec93000224f47ed95f546d3978fb42 /examples/corelib/ipc/localfortuneclient/main.cpp
parent183f179fd0388f3f48c941ddae7a201d2dc23add (diff)
Revamp Local Fortune Client Example: Fix include order
Fix include order to respect the Coding Conventions. Include individual headers instead of "generic" headers. Remove QT_{BEGIN,END}_NAMESPACE because these are private Qt macros that should not be used in the examples. Task-number: QTBUG-117036 Pick-to: 6.5 Change-Id: I33f9c54098824bfcfacac7c2f624554e105a291a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit b83736be05e8ba4bcc586ff276ce81f992e0ef76) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/corelib/ipc/localfortuneclient/main.cpp')
-rw-r--r--examples/corelib/ipc/localfortuneclient/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/corelib/ipc/localfortuneclient/main.cpp b/examples/corelib/ipc/localfortuneclient/main.cpp
index 3c2a7b284c..f52807ec48 100644
--- a/examples/corelib/ipc/localfortuneclient/main.cpp
+++ b/examples/corelib/ipc/localfortuneclient/main.cpp
@@ -1,10 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#include <QApplication>
-
#include "client.h"
+#include <QApplication>
+
int main(int argc, char *argv[])
{
QApplication app(argc, argv);