summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmltext_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/xml/cfx_xmltext_unittest.cpp')
-rw-r--r--core/fxcrt/xml/cfx_xmltext_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmltext_unittest.cpp b/core/fxcrt/xml/cfx_xmltext_unittest.cpp
index 6e53f66612..04b1ee8571 100644
--- a/core/fxcrt/xml/cfx_xmltext_unittest.cpp
+++ b/core/fxcrt/xml/cfx_xmltext_unittest.cpp
@@ -25,7 +25,7 @@ TEST(CFX_XMLTextTest, Clone) {
CFX_XMLNode* clone = data.Clone(&doc);
EXPECT_TRUE(clone != nullptr);
ASSERT_EQ(FX_XMLNODE_Text, clone->GetType());
- EXPECT_EQ(L"My Data", static_cast<CFX_XMLText*>(clone)->GetText());
+ EXPECT_EQ(L"My Data", ToXMLText(clone)->GetText());
}
TEST(CFX_XMLTextTest, Save) {