@@ -89,7 +89,7 @@ struct TagNode : public HTMLNode {
89
89
90
90
HTMLTag Tag; // Name of HTML Tag (p, div, h1)
91
91
std::vector<std::unique_ptr<HTMLNode>> Children; // List of child nodes
92
- std::vector<std::pair<llvm::SmallString< 16 >, llvm::SmallString< 16 > >>
92
+ std::vector<std::pair<std::string, std::string >>
93
93
Attributes; // List of key-value attributes for tag
94
94
95
95
void Render (llvm::raw_ostream &OS, int IndentationLevel) override ;
@@ -278,7 +278,7 @@ genStylesheetsHTML(StringRef InfoPath, const ClangDocContext &CDCtx) {
278
278
llvm::sys::path::filename (FilePath));
279
279
// Paths in HTML must be in posix-style
280
280
llvm::sys::path::native (StylesheetPath, llvm::sys::path::Style ::posix);
281
- LinkNode->Attributes .emplace_back (" href" , StylesheetPath);
281
+ LinkNode->Attributes .emplace_back (" href" , StylesheetPath. str () );
282
282
Out.emplace_back (std::move (LinkNode));
283
283
}
284
284
return Out;
@@ -293,7 +293,7 @@ genJsScriptsHTML(StringRef InfoPath, const ClangDocContext &CDCtx) {
293
293
llvm::sys::path::append (ScriptPath, llvm::sys::path::filename (FilePath));
294
294
// Paths in HTML must be in posix-style
295
295
llvm::sys::path::native (ScriptPath, llvm::sys::path::Style ::posix);
296
- ScriptNode->Attributes .emplace_back (" src" , ScriptPath);
296
+ ScriptNode->Attributes .emplace_back (" src" , ScriptPath. str () );
297
297
Out.emplace_back (std::move (ScriptNode));
298
298
}
299
299
return Out;
@@ -454,7 +454,7 @@ writeFileDefinition(const Location &L,
454
454
Node->Children .emplace_back (std::make_unique<TextNode>(" of file " ));
455
455
auto LocFileNode = std::make_unique<TagNode>(
456
456
HTMLTag::TAG_A, llvm::sys::path::filename (FileURL));
457
- LocFileNode->Attributes .emplace_back (" href" , FileURL);
457
+ LocFileNode->Attributes .emplace_back (" href" , FileURL. str () );
458
458
Node->Children .emplace_back (std::move (LocFileNode));
459
459
return Node;
460
460
}
0 commit comments