summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppcheckdiagnostic.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-07-13 09:27:18 +0200
committerhjk <hjk@qt.io>2022-07-13 09:44:09 +0000
commit802de0eb5ee4d29a1e75764880989ba572f6af27 (patch)
tree07ff1a2075d7b51b1b1d647316b9f527522c5470 /src/plugins/cppcheck/cppcheckdiagnostic.cpp
parent480da99508094f59366e4066c7cb239c9b36a1ed (diff)
downloadqt-creator-802de0eb5ee4d29a1e75764880989ba572f6af27.tar.gz
Utils: Collapse most of porting,h
Taking the Qt 6 branches, leaving some dummies until downstream adapted. Change-Id: Ib9b86568d73c341c8f740ba497c3cbfab830d8a1 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnostic.cpp')
-rw-r--r--src/plugins/cppcheck/cppcheckdiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckdiagnostic.cpp b/src/plugins/cppcheck/cppcheckdiagnostic.cpp
index a1b8235e82..6151cadeb4 100644
--- a/src/plugins/cppcheck/cppcheckdiagnostic.cpp
+++ b/src/plugins/cppcheck/cppcheckdiagnostic.cpp
@@ -34,7 +34,7 @@ bool Diagnostic::operator==(const Diagnostic &r) const
== std::tie(r.severity, r.message, r.fileName, r.lineNumber);
}
-Utils::QHashValueType qHash(const Diagnostic &diagnostic)
+size_t qHash(const Diagnostic &diagnostic)
{
return qHash(diagnostic.message) ^ qHash(diagnostic.fileName) ^ diagnostic.lineNumber;
}