From 2394e7d9f771e87e65875ca350b851c466e9a6eb48293bf2ee9a26a03a989193 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 11 Aug 2025 02:46:49 -0400 Subject: [PATCH] Local string. --- src/styleengine.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/styleengine.cc b/src/styleengine.cc index 1c4462b..f0f73df 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -1074,11 +1074,11 @@ void StyleEngine::init () { } void StyleEngine::buildUserStyle () { - char *filename = dStrconcat(dGethomedir(), "/.flenser/style.css", NULL); + using namespace std::literals::string_literals; + std::string filename = dGethomedir() + "/.flenser/style.css"s; - const std::string style= a_Misc_file2dstr(filename); + const std::string style= a_Misc_file2dstr(filename.c_str()); if (not style.empty()) { CssParser::parse (NULL,NULL,cssContext, style.c_str(), style.size(), CSS_ORIGIN_USER); } - dFree (filename); }