mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-04-20 15:51:17 +02:00
Use tidyBufInit to initialize buffer
This commit is contained in:
parent
ebdee25fe6
commit
1567c2a3c6
@ -1012,9 +1012,10 @@ std::string Util::transformGamename(const std::string& gamename)
|
||||
std::string Util::htmlToXhtml(const std::string& html)
|
||||
{
|
||||
std::string xhtml;
|
||||
TidyBuffer buffer = {0, 0, 0, 0, 0};
|
||||
TidyBuffer buffer;
|
||||
int rc = -1;
|
||||
TidyDoc doc = tidyCreate();
|
||||
tidyBufInit(&buffer);
|
||||
|
||||
tidyOptSetBool(doc, TidyXhtmlOut, yes);
|
||||
tidyOptSetBool(doc, TidyForceOutput, yes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user