summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/thread/qthread_p.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h
index 7c9cfc4..2a15847 100644
--- a/src/corelib/thread/qthread_p.h
+++ b/src/corelib/thread/qthread_p.h
@@ -240,13 +240,21 @@ public:
public:
FlaggedDebugSignatures() : idx(0)
- { std::fill_n(locations, Count, static_cast<char*>(0)); }
+ {
+ for (uint i = 0; i < Count; ++i)
+ locations[i] = 0;
+ }
void store(const char* method)
{ locations[idx++ % Count] = method; }
bool contains(const char *method) const
- { return std::find(locations, locations + Count, method) != locations + Count; }
+ {
+ for (uint i = 0; i < Count; ++i)
+ if (locations[i] == method)
+ return true;
+ return false;
+ }
};
QThread *thread;