diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 19:38:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 19:38:01 +0100 |
commit | 6ed119fccfe83fc481b573c4adbc8257f550de8f (patch) | |
tree | 356ef0679ae049f871675395f6170e0b7abbf7d1 | |
parent | Add missing includes of buffer.h (diff) | |
download | gentoobrowse-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.cpp | 2 | ||||
-rw-r--r-- | gentoobrowse-api/unittests/testNotifications.cpp | 1 |
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>; |