summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-10-03 19:38:01 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-10-03 19:38:01 +0100
commit6ed119fccfe83fc481b573c4adbc8257f550de8f (patch)
tree356ef0679ae049f871675395f6170e0b7abbf7d1
parentAdd missing includes of buffer.h (diff)
downloadgentoobrowse-api-6ed119fccfe83fc481b573c4adbc8257f550de8f.tar.bz2
gentoobrowse-api-6ed119fccfe83fc481b573c4adbc8257f550de8f.tar.xz
gentoobrowse-api-6ed119fccfe83fc481b573c4adbc8257f550de8f.zip
Fix changes to libtidy interface
-rw-r--r--gentoobrowse-api/unittests/mockDefs.cpp2
-rw-r--r--gentoobrowse-api/unittests/testNotifications.cpp1
2 files changed, 1 insertions, 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 <memstream.h>
#include <mimeImpl.h>
#include <regex>
-#include <tidy.h>
using namespace std::string_literals;
using QPTD = std::tuple<std::string_view, std::string_view>;