diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-28 00:00:24 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-28 00:00:24 +0000 |
commit | f19ae5dcd0b618cdeb80d6a1df5b13610d0ff7da (patch) | |
tree | 6e834ca7ebaff809e6e8d352c41bb1f8d4ec4203 /core/fxcrt/xml/cfx_xmlchardata_unittest.cpp | |
parent | 0415e02db77da26495dc0fbd80de76ce1d777585 (diff) | |
download | pdfium-f19ae5dcd0b618cdeb80d6a1df5b13610d0ff7da.tar.xz |
Add ToXML{Instruction,Text,CharData}() checked conversion functions
All usages were previously checked correctly, but this consolidates
some code as well.
Change-Id: I63711748b31b698a3f21f98fdb536db1e9e0b1cf
Reviewed-on: https://pdfium-review.googlesource.com/39010
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlchardata_unittest.cpp')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlchardata_unittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/xml/cfx_xmlchardata_unittest.cpp b/core/fxcrt/xml/cfx_xmlchardata_unittest.cpp index 4f0c49eaac..41906edbfd 100644 --- a/core/fxcrt/xml/cfx_xmlchardata_unittest.cpp +++ b/core/fxcrt/xml/cfx_xmlchardata_unittest.cpp @@ -26,7 +26,7 @@ TEST(CFX_XMLCharDataTest, Clone) { EXPECT_TRUE(clone != nullptr); EXPECT_NE(&data, clone); ASSERT_EQ(FX_XMLNODE_CharData, clone->GetType()); - EXPECT_EQ(L"My Data", static_cast<CFX_XMLCharData*>(clone)->GetText()); + EXPECT_EQ(L"My Data", ToXMLCharData(clone)->GetText()); } TEST(CFX_XMLCharDataTest, Save) { |