summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmlelement_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlelement_unittest.cpp')
-rw-r--r--core/fxcrt/xml/cfx_xmlelement_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmlelement_unittest.cpp b/core/fxcrt/xml/cfx_xmlelement_unittest.cpp
index dfc60a10c3..a1c63589ec 100644
--- a/core/fxcrt/xml/cfx_xmlelement_unittest.cpp
+++ b/core/fxcrt/xml/cfx_xmlelement_unittest.cpp
@@ -104,7 +104,7 @@ TEST(CFX_XMLElementTest, Clone) {
EXPECT_TRUE(inst->GetFirstChild()->GetNextSibling() == nullptr);
ASSERT_EQ(FX_XMLNODE_Text, inst->GetFirstChild()->GetType());
- auto* text = static_cast<CFX_XMLText*>(inst->GetFirstChild());
+ auto* text = ToXMLText(inst->GetFirstChild());
EXPECT_EQ(L"Text Child", text->GetText());
}