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:
parent
f1017c3ed4
commit
0c332b9609
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user