4
0
mirror of https://github.com/QuasarApp/CMakeProject.git synced 2025-04-27 14:14:32 +00:00

fix warnings and update cmake submodule

This commit is contained in:
Andrei Yankovich 2021-03-19 11:28:14 +03:00
parent 57f5597179
commit 3913f2a197
8 changed files with 58 additions and 3 deletions

2
CMake

@ -1 +1 @@
Subproject commit 72afe7f2e3f0062e231478f212c96a49d95dc6d1
Subproject commit 814b6aeb4ea5b3d9985aabe88af92b37f5aed5ad

View File

@ -1,3 +1,10 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include <QtTest>
#include "exampletest.h"
@ -59,9 +66,9 @@ void tstMain::unitTests() {
QDir(path).removeRecursively();
QTimer::singleShot(0, [&app, this]() {
QTimer::singleShot(0, this, [&app, this]() {
for (auto test : _tests ) {
for (auto test : qAsConst(_tests) ) {
test->test();
delete test;
}

View File

@ -1,3 +1,11 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "exampletest.h"

View File

@ -1,3 +1,11 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef EXAMPLE_TEST_H
#define EXAMPLE_TEST_H
#include "test.h"

View File

@ -1 +1,9 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "test.h"

View File

@ -1,3 +1,11 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef TEST_H
#define TEST_H

View File

@ -1,3 +1,11 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "testutils.h"
#include <QCoreApplication>

View File

@ -1,3 +1,11 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef TESTUTILS_H
#define TESTUTILS_H