From 8643b52467f4034498c7fb08ede4b1f429ed5aa5 Mon Sep 17 00:00:00 2001 From: Rym Bouabid Date: Mon, 11 Sep 2023 14:43:02 +0200 Subject: [PATCH] Revamp Shared Memory Example: Fix include order Fix include order to respect the Coding Conventions. Task-number: QTBUG-108858 Pick-to: 6.6 6.5 Change-Id: Ifecf7c60ca7135104631587b25e907cb1d39e25b Reviewed-by: Ivan Solovev --- examples/corelib/ipc/sharedmemory/dialog.cpp | 3 ++- examples/corelib/ipc/sharedmemory/dialog.h | 1 + examples/corelib/ipc/sharedmemory/main.cpp | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/corelib/ipc/sharedmemory/dialog.cpp b/examples/corelib/ipc/sharedmemory/dialog.cpp index b656cc0c67..f01866dc8e 100644 --- a/examples/corelib/ipc/sharedmemory/dialog.cpp +++ b/examples/corelib/ipc/sharedmemory/dialog.cpp @@ -2,8 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #include "dialog.h" -#include + #include +#include /*! \class Dialog diff --git a/examples/corelib/ipc/sharedmemory/dialog.h b/examples/corelib/ipc/sharedmemory/dialog.h index 0f8abaa8b6..3bdc9fc070 100644 --- a/examples/corelib/ipc/sharedmemory/dialog.h +++ b/examples/corelib/ipc/sharedmemory/dialog.h @@ -6,6 +6,7 @@ #include #include + #include "ui_dialog.h" //! [0] diff --git a/examples/corelib/ipc/sharedmemory/main.cpp b/examples/corelib/ipc/sharedmemory/main.cpp index bf5bd457ae..ffdd656502 100644 --- a/examples/corelib/ipc/sharedmemory/main.cpp +++ b/examples/corelib/ipc/sharedmemory/main.cpp @@ -1,9 +1,10 @@ // Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -#include #include "dialog.h" +#include + //! [0] int main(int argc, char *argv[]) {