From 8b463ca15862d364c629b5fffc633388d63148a5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Feb 2022 17:14:22 -0800 Subject: [PATCH] Qt6: add missing includes This class is only available via Qt5 compatibility and for that we need the explicit include. Signed-off-by: Dirk Hohndel --- tests/testparseperformance.cpp | 1 + tests/testprofile.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testparseperformance.cpp b/tests/testparseperformance.cpp index 32ca27a6d..378982b83 100644 --- a/tests/testparseperformance.cpp +++ b/tests/testparseperformance.cpp @@ -10,6 +10,7 @@ #include #include #include +#include "QTextCodec" #define LARGE_TEST_REPO "https://github.com/Subsurface/large-anonymous-sample-data" diff --git a/tests/testprofile.cpp b/tests/testprofile.cpp index 66f6eea5c..246a12463 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -6,6 +6,7 @@ #include "core/file.h" #include "core/save-profiledata.h" #include "core/pref.h" +#include "QTextCodec" // This test compares the content of struct profile against a known reference version for a list // of dives to prevent accidental regressions. Thus is you change anything in the profile this @@ -18,7 +19,6 @@ void TestProfile::init() { // Set UTF8 text codec as in real applications QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106)); - // first, setup the preferences // normally we should be able to do this - but it makes this test fail because the reference data