diff options
author | Todd Lipcon <todd@cloudera.com> | 2019-06-03 10:29:06 -0700 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2020-02-10 00:53:46 -0800 |
commit | 36bf1309de52433f0088274b347b4fc385ea056f (patch) | |
tree | 3acbd1f19766cc5a64701a923c461b86f4c725e6 /src | |
parent | 2b2a962c2bdc3ecbdbd45873a07989c7ccb56560 (diff) | |
download | gperftools-36bf1309de52433f0088274b347b4fc385ea056f.tar.gz |
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::
Diffstat (limited to 'src')
-rw-r--r-- | src/thread_cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread_cache.cc b/src/thread_cache.cc index 97f3ffe..21d0f8e 100644 --- a/src/thread_cache.cc +++ b/src/thread_cache.cc @@ -278,7 +278,7 @@ void ThreadCache::IncreaseCacheLimitLocked() { } int ThreadCache::GetSamplePeriod() { - return sampler_.GetSamplePeriod(); + return Sampler::GetSamplePeriod(); } void ThreadCache::InitModule() { |