Kaydet (Commit) 859b91cb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

USHRT_MAX -> SAL_MAX_UINT16 for XMLCharContext::m_nCount

...which is of type sal_uInt16 ever since the class got introduced with
0e3ff5db "INTEGRATION: CWS oj14: #i77059# export
char content helper for example line break"

Change-Id: I1dcb2894861ea5b6104932d896b7166c5c0b4689
Reviewed-on: https://gerrit.libreoffice.org/48347Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 9af8f190
......@@ -119,8 +119,8 @@ XMLCharContext::XMLCharContext(
sal_Int32 nTmp = xAttrList->getValueByIndex(i).toInt32();
if( nTmp > 0 )
{
if( nTmp > USHRT_MAX )
m_nCount = USHRT_MAX;
if( nTmp > SAL_MAX_UINT16 )
m_nCount = SAL_MAX_UINT16;
else
m_nCount = static_cast<sal_uInt16>(nTmp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment