[poppler] utils/HtmlOutputDev.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 10 14:17:53 UTC 2022


 utils/HtmlOutputDev.cc |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 5390a119a3cdf58ea03effac83910cd35eab23f6
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Feb 10 14:53:30 2022 +0100

    HtmlOutputDev: Remove useless GooString

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index 5d697a58..668ec0ca 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -925,12 +925,9 @@ void HtmlPage::dump(FILE *f, int pageNum, const std::vector<std::string> &backgr
         }
         imgList.clear();
 
-        GooString *str;
         for (HtmlString *tmp = yxStrings; tmp; tmp = tmp->yxNext) {
             if (tmp->htext) {
-                str = new GooString(tmp->htext);
-                fputs(str->c_str(), f);
-                delete str;
+                fputs(tmp->htext->c_str(), f);
                 fputs("<br/>\n", f);
             }
         }


More information about the poppler mailing list