Changeset View
Changeset View
Standalone View
Standalone View
src/analyze/gui/locationdata.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 87 | { | |||
---|---|---|---|---|---|
88 | return file.isEmpty() ? QStringLiteral("??") : (file + QLatin1Char(':') + QString::number(line)); | 88 | return file.isEmpty() ? QStringLiteral("??") : (file + QLatin1Char(':') + QString::number(line)); | ||
89 | } | 89 | } | ||
90 | }; | 90 | }; | ||
91 | Q_DECLARE_TYPEINFO(FileLine, Q_MOVABLE_TYPE); | 91 | Q_DECLARE_TYPEINFO(FileLine, Q_MOVABLE_TYPE); | ||
92 | Q_DECLARE_METATYPE(FileLine) | 92 | Q_DECLARE_METATYPE(FileLine) | ||
93 | 93 | | |||
94 | inline QString unresolvedFunctionName() | 94 | inline QString unresolvedFunctionName() | ||
95 | { | 95 | { | ||
96 | return i18n("<unresolved function>"); | 96 | static QString msg = i18n("<unresolved function>"); | ||
97 | return msg; | ||||
97 | } | 98 | } | ||
98 | 99 | | |||
99 | inline uint qHash(const Symbol& symbol, uint seed_ = 0) | 100 | inline uint qHash(const Symbol& symbol, uint seed_ = 0) | ||
100 | { | 101 | { | ||
101 | size_t seed = seed_; | 102 | size_t seed = seed_; | ||
102 | boost::hash_combine(seed, qHash(symbol.symbol)); | 103 | boost::hash_combine(seed, qHash(symbol.symbol)); | ||
103 | boost::hash_combine(seed, qHash(symbol.binary)); | 104 | boost::hash_combine(seed, qHash(symbol.binary)); | ||
104 | boost::hash_combine(seed, qHash(symbol.path)); | 105 | boost::hash_combine(seed, qHash(symbol.path)); | ||
Show All 12 Lines |