Fix QSSGRenderPath's qHash() to be nothrow


The existing qHash() function hashed the concatenation of two
QStrings. Concatenating QStrings allocates memory, of course, so can
throw, even though the qHash() function was marked as nothrow.

Fix by hashing the two strings separately, using qHashMulti(). This
has the same effect, since order in qHashMulti() (unlike in
qHashMultiCommutative()) matters just like in concatenation, but avoid
the memory allocation of constructing the concatenated string.

This changes the hash value for a given QSSGRenderPath, of course, but
this is permissible even though the qHash() overload was inline,
because this is private API and we don't promise BC for private API.

Amends edaef10f41074b0616c3ec42d379cf4bd9cc9278 (6.10).

As a drive-by, make the qHash() a true hidden friend, drop the Qt
5-style Q_DECL_NOTHROW for C++11 noexcept, use the idiomatic argument
name (`key`) and add the missing default value for the seed argument,
amending the start of the public history,
03dbcc5eb3364886ee8ffc07b4438eaee3c188fe.

Pick-to: 6.11
Task-number: QTBUG-145851
Change-Id: I077b8d37fbe54a03947cbc19e2ad890e21809240
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commitaff844060afceb56d37849fd35b8ed774db32a29
parent564fc5beed1b221ec6d25f36e4083b40c38b718b
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 20 Apr 2026 14:30:51 +0000