Skip to content

Commit 21edd38

Browse files
[clang-doc] Use SmallString::operator std::string (NFC)
1 parent 10b1c29 commit 21edd38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-doc/HTMLGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ writeFileDefinition(const Location &L,
457457
Node->Children.emplace_back(std::make_unique<TextNode>(" of file "));
458458
auto LocFileNode = std::make_unique<TagNode>(
459459
HTMLTag::TAG_A, llvm::sys::path::filename(FileURL));
460-
LocFileNode->Attributes.emplace_back("href", std::string(FileURL.str()));
460+
LocFileNode->Attributes.emplace_back("href", std::string(FileURL));
461461
Node->Children.emplace_back(std::move(LocFileNode));
462462
return Node;
463463
}

0 commit comments

Comments
 (0)