RIS_ResourceItemDescriptorFromHeader:  Fix build on Qt 5.7
QLatin1String didn't have an end() method in older Qt versions.
@@ -395,8 +395,9 @@ QVariantMap RIS_IntrospectButtonEventItem(const ResourceItemDescriptor &rid, con
*/
bool RIS_ResourceItemDescriptorFromHeader(const QHttpRequestHeader &hdr, ResourceItemDescriptor *rid)
{
+ const auto last = hdr.pathAt(hdr.pathComponentsCount() - 2);
const char *beg = hdr.pathAt(4).data();
- const char *end = hdr.pathAt(hdr.pathComponentsCount() - 2).end();
+ const char *end = last.data() + last.size();
if (beg && end && beg < end)
{
