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:
Todd Lipcon 2019-06-03 10:29:06 -07:00 committed by Aliaksey Kandratsenka
parent 2b2a962c2b
commit 36bf1309de

View File

@ -278,7 +278,7 @@ void ThreadCache::IncreaseCacheLimitLocked() {
}
int ThreadCache::GetSamplePeriod() {
return sampler_.GetSamplePeriod();
return Sampler::GetSamplePeriod();
}
void ThreadCache::InitModule() {