mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-22 19:57:08 +01:00
Update sqratUtil.h
This commit is contained in:
1 parent
d73ee70395
commit
6d30202bbd
1 file changed
+3
-1
@@ -2019,9 +2019,11 @@ struct StackStrF
|
|||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// Compute the string hash and cache it into the mRes member.
|
/// Compute the string hash and cache it into the mRes member.
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
void CacheHash()
|
StackStrF & CacheHash()
|
||||||
{
|
{
|
||||||
mRes = static_cast< SQInteger >(ToHash());
|
mRes = static_cast< SQInteger >(ToHash());
|
||||||
|
// Allow chaining
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
/// Retrieve the cached string hash.
|
/// Retrieve the cached string hash.
|
||||||
|
|||||||
Reference in new issue
Block a user