Skip to content
Permalink
Browse files
Fix qt < 5.14 build
  • Loading branch information
nyalldawson committed Sep 14, 2021
1 parent 75c7b28 commit 453e2ebfbd0550f372e73df66352701d7f150321
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/core/qgis.h
@@ -1225,6 +1225,20 @@ namespace qgis
#endif
}
}

#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
namespace std
{
template<> struct hash<QString>
{
std::size_t operator()( const QString &s ) const noexcept
{
return ( size_t ) qHash( s );
}
};
}
#endif

///@endcond
#endif

0 comments on commit 453e2eb

Please sign in to comment.