diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/crypto/cryptosign.cxx | 8 | ||||
-rw-r--r-- | svl/source/misc/adrparse.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx index 9f18e53a3eca..58dafc378af4 100644 --- a/svl/source/crypto/cryptosign.cxx +++ b/svl/source/crypto/cryptosign.cxx @@ -401,7 +401,7 @@ my_SEC_StringToOID(SECItem *to, const char *from, PRUint32 len) SECStatus rv; PRUint8 result[1024]; - static const PRUint32 max_decimal = (0xffffffff / 10); + static const PRUint32 max_decimal = 0xffffffff / 10; static const char OIDstring[] = {"OID."}; if (!from || !to) { @@ -423,7 +423,7 @@ bad_data: do { PRUint32 decimal = 0; while (len > 0 && rtl::isAsciiDigit(static_cast<unsigned char>(*from))) { - PRUint32 addend = (*from++ - '0'); + PRUint32 addend = *from++ - '0'; --len; if (decimal > max_decimal) /* overflow */ goto bad_data; @@ -1766,7 +1766,7 @@ SECStatus StringToOID(SECItem* to, const char* from, PRUint32 len) SECStatus rv; PRUint8 result[1024]; - static const PRUint32 max_decimal = (0xffffffff / 10); + static const PRUint32 max_decimal = 0xffffffff / 10; static const char OIDstring[] = {"OID."}; if (!from || !to) @@ -1794,7 +1794,7 @@ bad_data: PRUint32 decimal = 0; while (len > 0 && rtl::isAsciiDigit(static_cast<unsigned char>(*from))) { - PRUint32 addend = (*from++ - '0'); + PRUint32 addend = *from++ - '0'; --len; if (decimal > max_decimal) /* overflow */ goto bad_data; diff --git a/svl/source/misc/adrparse.cxx b/svl/source/misc/adrparse.cxx index a3b7ef6060a3..11d8742c36ed 100644 --- a/svl/source/misc/adrparse.cxx +++ b/svl/source/misc/adrparse.cxx @@ -629,7 +629,7 @@ SvAddressParser_Impl::SvAddressParser_Impl(SvAddressParser * pParser, aTheAddrSpec = reparse(m_pAddrSpec->m_pBegin, m_pAddrSpec->m_pEnd, true); else { - sal_Int32 nLen = ( m_pAddrSpec->m_pEnd - m_pAddrSpec->m_pBegin); + sal_Int32 nLen = m_pAddrSpec->m_pEnd - m_pAddrSpec->m_pBegin; if (nLen == rInput.getLength()) aTheAddrSpec = rInput; else @@ -656,7 +656,7 @@ SvAddressParser_Impl::SvAddressParser_Impl(SvAddressParser * pParser, aTheRealName = reparse(m_pRealNameBegin, m_pRealNameEnd, false); else { - sal_Int32 nLen = (m_pRealNameContentEnd - m_pRealNameContentBegin); + sal_Int32 nLen = m_pRealNameContentEnd - m_pRealNameContentBegin; if (nLen == rInput.getLength()) aTheRealName = rInput; else |