From 6ed119fccfe83fc481b573c4adbc8257f550de8f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Oct 2021 19:38:01 +0100 Subject: Fix changes to libtidy interface --- gentoobrowse-api/unittests/mockDefs.cpp | 2 +- gentoobrowse-api/unittests/testNotifications.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gentoobrowse-api/unittests/mockDefs.cpp b/gentoobrowse-api/unittests/mockDefs.cpp index 398e3e9..60241cd 100644 --- a/gentoobrowse-api/unittests/mockDefs.cpp +++ b/gentoobrowse-api/unittests/mockDefs.cpp @@ -73,7 +73,7 @@ TestClient::lintable_test_files(std::string_view name, IceTray::Mail::EmailPtr e text << plainPart->payload; TidyDoc tdoc = tidyCreate(); - BOOST_REQUIRE_EQUAL(1, tidyOptSetBool(tdoc, TidyIndentContent, yes)); + BOOST_REQUIRE_EQUAL(1, tidyOptSetInt(tdoc, TidyIndentContent, yes)); BOOST_REQUIRE_EQUAL(1, tidyOptSetInt(tdoc, TidyWrapLen, 0)); BOOST_REQUIRE_EQUAL(0, tidyParseString(tdoc, htmlPart->payload.c_str())); BOOST_REQUIRE_EQUAL(0, tidyCleanAndRepair(tdoc)); diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp index ddd1fa7..c0f3162 100644 --- a/gentoobrowse-api/unittests/testNotifications.cpp +++ b/gentoobrowse-api/unittests/testNotifications.cpp @@ -8,7 +8,6 @@ #include #include #include -#include using namespace std::string_literals; using QPTD = std::tuple; -- cgit v1.2.3