|
|
@@ -102,7 +102,7 @@ using MediaBlockList = Vector<MediaBlock>;
|
|
|
*/
|
|
|
struct StyleSheetIndex {
|
|
|
using NodeList = Vector<const StyleSheetNode*>;
|
|
|
- using NodeIndex = UnorderedMap<std::size_t, NodeList>;
|
|
|
+ using NodeIndex = UnorderedMap<size_t, NodeList>;
|
|
|
|
|
|
// The following objects are given in prioritized order. Any nodes in the first object will not be contained in the next one and so on.
|
|
|
NodeIndex ids, classes, tags;
|
|
|
@@ -114,9 +114,9 @@ namespace std {
|
|
|
// Hash specialization for the node list, so it can be used as key in UnorderedMap.
|
|
|
template <>
|
|
|
struct hash<::Rml::StyleSheetIndex::NodeList> {
|
|
|
- std::size_t operator()(const ::Rml::StyleSheetIndex::NodeList& nodes) const noexcept
|
|
|
+ size_t operator()(const ::Rml::StyleSheetIndex::NodeList& nodes) const noexcept
|
|
|
{
|
|
|
- std::size_t seed = 0;
|
|
|
+ size_t seed = 0;
|
|
|
for (const ::Rml::StyleSheetNode* node : nodes)
|
|
|
::Rml::Utilities::HashCombine(seed, node);
|
|
|
return seed;
|