[Libreoffice-commits] core.git: Move string hash function into String class.

Norbert Thiebaud nthiebaud at gmail.com
Fri Feb 14 11:46:33 CET 2014


On Fri, Feb 14, 2014 at 3:12 AM, Stephan Bergmann <sbergman at redhat.com> wrote:
> On 02/13/2014 08:41 AM, Muthu Subramanian wrote:
>> +    sal_uInt64 hashCode64() const SAL_THROW(())   <---

>> --- a/sal/rtl/strtmpl.cxx
>> +++ b/sal/rtl/strtmpl.cxx
>>
>> +sal_uInt64 SAL_CALL IMPL_RTL_STRNAME( hashCode64_WithLength )( const
>> IMPL_RTL_STRCODE* pStr,
>> +                                                               sal_Int32
>> nLen )
>> +    SAL_THROW_EXTERN_C()   <----
>> +{
>> +    sal_uInt64 nHash = 0;
>> +
>> +    for( sal_Int32 i = 0; i < nLen; i++ )
>> +        nHash = (nHash << 5) - nHash + *pStr++;
>> +    return nHash;
>> +}

What does this 'throw' ?

Norbert


More information about the LibreOffice mailing list