diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_xmllocale.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_xmllocale.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_xmllocale.cpp b/xfa/fxfa/parser/cxfa_xmllocale.cpp index 6720d56cba..4354ed98de 100644 --- a/xfa/fxfa/parser/cxfa_xmllocale.cpp +++ b/xfa/fxfa/parser/cxfa_xmllocale.cpp @@ -65,7 +65,7 @@ CXFA_XMLLocale::CXFA_XMLLocale(std::unique_ptr<CFX_XMLElement> root, CXFA_XMLLocale::~CXFA_XMLLocale() {} WideString CXFA_XMLLocale::GetName() const { - return locale_->GetString(L"name"); + return locale_->GetAttribute(L"name"); } WideString CXFA_XMLLocale::GetDecimalSymbol() const { @@ -136,7 +136,7 @@ WideString CXFA_XMLLocale::GetCalendarSymbol(const WideStringView& symbol, if (elem->GetName() != pstrSymbolNames) continue; - WideString abbr = elem->GetString(L"abbr"); + WideString abbr = elem->GetAttribute(L"abbr"); bool abbr_value = false; if (!abbr.IsEmpty()) abbr_value = abbr == L"1"; @@ -219,7 +219,7 @@ WideString CXFA_XMLLocale::GetPattern(CFX_XMLElement* patterns, CFX_XMLElement* pattern = static_cast<CFX_XMLElement*>(child); if (pattern->GetName() != bsTag) continue; - if (pattern->GetString(L"name") != wsName) + if (pattern->GetAttribute(L"name") != wsName) continue; return pattern->GetTextData(); |