[Libreoffice-commits] core.git: Move string hash function into String class.
Michael Stahl
mstahl at redhat.com
Fri Feb 14 12:19:52 CET 2014
On 14/02/14 11:46, Norbert Thiebaud wrote:
> 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
well according to the throw annotation it's not throwing anything.
More information about the LibreOffice
mailing list