From d035bd44274efcda1d77a6ddeb79ef46e7a69fd0532a0ee0ffe5a45db89fed60 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 21 Aug 2025 23:37:54 -0400 Subject: [PATCH] Now it's done. --- dw/textblock.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dw/textblock.cc b/dw/textblock.cc index 532faa0..a87971b 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -282,7 +282,7 @@ Textblock::~Textblock () for( const Anchor &anchor: anchors ) { /* This also frees the names (see removeAnchor() and related). */ - removeAnchor(anchor.name); + removeAnchor(std::string{ anchor.name }); } delete paragraphs; @@ -721,7 +721,7 @@ void Textblock::sizeAllocateImpl (core::Allocation *allocation) Line *line = lines->getRef(findLineOfWord (anchor->wordIndex)); y = lineYOffsetCanvas (line, allocation); } - changeAnchor (anchor->name, y); + changeAnchor (std::string{ anchor->name }, y); } DBG_OBJ_LEAVE (); @@ -2584,7 +2584,7 @@ bool Textblock::addAnchor (const std::string &name, core::style::Style *style) anchors.emplace_back(); Anchor &anchor= anchors.back(); - anchor.name = copy; + anchor.name = copy.value(); anchor.wordIndex = words->size(); result = true; }