mirror of
https://github.com/gperftools/gperftools
synced 2025-02-28 01:50:28 +00:00
Fix a clang-tidy readability warning for static member access
This fixes the following warning: src/thread_cache.cc:281:10: warning: static member accessed through instance [readability-static-accessed-through-instance] return sampler_.GetSamplePeriod(); ^~~~~~~~~~~~~~~~~~~~~~~~ tcmalloc::Sampler::
This commit is contained in:
parent
2b2a962c2b
commit
36bf1309de
@ -278,7 +278,7 @@ void ThreadCache::IncreaseCacheLimitLocked() {
|
||||
}
|
||||
|
||||
int ThreadCache::GetSamplePeriod() {
|
||||
return sampler_.GetSamplePeriod();
|
||||
return Sampler::GetSamplePeriod();
|
||||
}
|
||||
|
||||
void ThreadCache::InitModule() {
|
||||
|
Loading…
Reference in New Issue
Block a user