diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_imagedata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_imagedata.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/xfa/fxfa/parser/cxfa_imagedata.cpp b/xfa/fxfa/parser/cxfa_imagedata.cpp index 7888c34205..145d3586a5 100644 --- a/xfa/fxfa/parser/cxfa_imagedata.cpp +++ b/xfa/fxfa/parser/cxfa_imagedata.cpp @@ -61,23 +61,23 @@ bool CXFA_ImageData::GetContent(WideString& wsText) { return true; } -bool CXFA_ImageData::SetContentType(const WideString& wsContentType) { - return m_pNode->JSNode()->SetCData(XFA_Attribute::ContentType, wsContentType, - false, false); +void CXFA_ImageData::SetContentType(const WideString& wsContentType) { + m_pNode->JSNode()->SetCData(XFA_Attribute::ContentType, wsContentType, false, + false); } -bool CXFA_ImageData::SetHref(const WideString& wsHref) { - if (m_bDefValue) - return m_pNode->JSNode()->SetCData(XFA_Attribute::Href, wsHref, false, - false); - return m_pNode->JSNode()->SetAttribute(XFA_Attribute::Href, - wsHref.AsStringView(), false); +void CXFA_ImageData::SetHref(const WideString& wsHref) { + if (m_bDefValue) { + m_pNode->JSNode()->SetCData(XFA_Attribute::Href, wsHref, false, false); + return; + } + m_pNode->JSNode()->SetAttribute(XFA_Attribute::Href, wsHref.AsStringView(), + false); } -bool CXFA_ImageData::SetTransferEncoding(XFA_ATTRIBUTEENUM iTransferEncoding) { +void CXFA_ImageData::SetTransferEncoding(XFA_ATTRIBUTEENUM iTransferEncoding) { if (m_bDefValue) { - return m_pNode->JSNode()->SetEnum(XFA_Attribute::TransferEncoding, - iTransferEncoding, false); + m_pNode->JSNode()->SetEnum(XFA_Attribute::TransferEncoding, + iTransferEncoding, false); } - return true; } |