0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

Correct checking for thread_name

This commit is contained in:
Victor Zarubkin 2016-11-23 22:16:53 +03:00 committed by Sergey Yagovtsev
parent f1017c3ed4
commit 0c332b9609

View File

@ -227,7 +227,7 @@ namespace profiler {
inline bool got_name() const
{
return thread_name.front() != 0;
return !thread_name.empty();
}
inline const char* name() const