hash(QString) is now defined by Qt
This commit is contained in:
parent
23165d77c8
commit
d6709a1dea
1 changed files with 8 additions and 8 deletions
|
|
@ -32,14 +32,14 @@ inline std::string qvarToStdStr(const QVariant &c)
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
template <>
|
// template <>
|
||||||
struct hash<QString>
|
// struct hash<QString>
|
||||||
{
|
// {
|
||||||
std::size_t operator()(const QString& s) const
|
// std::size_t operator()(const QString& s) const
|
||||||
{
|
// {
|
||||||
return qHash(s);
|
// return qHash(s);
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue