savegame ex.: fix include order

Includes should be ordered from most specific to most general. This
means that project-specific includes always come before Qt includes.

This example didn't follow that guideline. Fix.

Task-number: QTBUG-108857
Pick-to: 6.5 6.4 6.2 5.15
Change-Id: I42727ff8bdef5336368cde349cbcb8d10bb6289f
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Marc Mutz 2023-02-07 13:52:50 +01:00
parent 06a9b85f8f
commit 88e8094f18
2 changed files with 4 additions and 3 deletions

View File

@ -4,11 +4,11 @@
#ifndef LEVEL_H
#define LEVEL_H
#include "character.h"
#include <QJsonObject>
#include <QList>
#include "character.h"
//! [0]
class Level
{

View File

@ -1,10 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "game.h"
#include <QCoreApplication>
#include <QTextStream>
#include "game.h"
//! [0]
int main(int argc, char *argv[])
{