summaryrefslogtreecommitdiff
path: root/utils/HtmlFonts.cc
diff options
context:
space:
mode:
authorSune Vuorela <sune@vuorela.dk>2024-02-01 19:11:03 +0000
committerAlbert Astals Cid <aacid@kde.org>2024-02-01 19:11:03 +0000
commitfc1c711cb5f769546c6b31cc688bf0ee7f0c1dbc (patch)
treefa8c75231e85769de4fffc7aa5b5b313d9103d94 /utils/HtmlFonts.cc
parente56d7d7d325928e4db43043eec9c290ef0e690e3 (diff)
More unicode vectors; fewer raw pointers
Diffstat (limited to 'utils/HtmlFonts.cc')
-rw-r--r--utils/HtmlFonts.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc
index ca7d4a49..9f256211 100644
--- a/utils/HtmlFonts.cc
+++ b/utils/HtmlFonts.cc
@@ -230,9 +230,9 @@ GooString *HtmlFont::getFullName()
}
// this method if plain wrong todo
-GooString *HtmlFont::HtmlFilter(const Unicode *u, int uLen)
+std::unique_ptr<GooString> HtmlFont::HtmlFilter(const Unicode *u, int uLen)
{
- GooString *tmp = new GooString();
+ auto tmp = std::make_unique<GooString>();
const UnicodeMap *uMap;
char buf[8];
int n;