| 1288 | } |
| 1289 | |
| 1290 | RichText* RichText::createWithXML(std::string_view xml, const ValueMap& defaults, const OpenUrlHandler& handleOpenUrl) |
| 1291 | { |
| 1292 | RichText* widget = new RichText(); |
| 1293 | if (widget->initWithXML(xml, defaults, handleOpenUrl)) |
| 1294 | { |
| 1295 | widget->autorelease(); |
| 1296 | return widget; |
| 1297 | } |
| 1298 | AX_SAFE_DELETE(widget); |
| 1299 | return nullptr; |
| 1300 | } |
| 1301 | |
| 1302 | bool RichText::init() |
| 1303 | { |
nothing calls this directly
no test coverage detected