chore: remove old Qt 5.12 code, update docs and FreeBSD runner (#5396)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2024-06-23 14:26:59 +02:00
committed by GitHub
parent 4421b6c90a
commit 189be8c68f
30 changed files with 35 additions and 138 deletions
+2 -8
View File
@@ -252,12 +252,6 @@ TEST(Helpers, BatchDifferentInputType)
EXPECT_EQ(result, expectation);
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 2)
# define makeView(x) x
#else
# define makeView(str) (&(str))
#endif
TEST(Helpers, skipSpace)
{
struct TestCase {
@@ -272,7 +266,7 @@ TEST(Helpers, skipSpace)
for (const auto &c : tests)
{
const auto actual = skipSpace(makeView(c.input), c.startIdx);
const auto actual = skipSpace(c.input, c.startIdx);
EXPECT_EQ(actual, c.expected)
<< actual << " (" << c.input << ") did not match expected value "
@@ -414,7 +408,7 @@ TEST(Helpers, findUnitMultiplierToSec)
for (const auto &c : tests)
{
SizeType pos = c.startPos;
const auto actual = findUnitMultiplierToSec(makeView(c.input), pos);
const auto actual = findUnitMultiplierToSec(c.input, pos);
if (c.expectedMultiplier == bad)
{