Profiler: Fix variable shadowing
This commit is contained in:
parent
58180a2db0
commit
1b1f61fe4c
3 changed files with 7 additions and 7 deletions
|
@ -90,10 +90,10 @@ void ProfilingManager::FinishFrame() {
|
|||
last_frame_end = now;
|
||||
}
|
||||
|
||||
TimingResultsAggregator::TimingResultsAggregator(size_t window_size)
|
||||
: max_window_size(window_size), window_size(0) {
|
||||
interframe_times.resize(window_size, Duration::zero());
|
||||
frame_times.resize(window_size, Duration::zero());
|
||||
TimingResultsAggregator::TimingResultsAggregator(size_t _window_size)
|
||||
: max_window_size(_window_size), window_size(0) {
|
||||
interframe_times.resize(_window_size, Duration::zero());
|
||||
frame_times.resize(_window_size, Duration::zero());
|
||||
}
|
||||
|
||||
void TimingResultsAggregator::Clear() {
|
||||
|
|
|
@ -84,7 +84,7 @@ private:
|
|||
*/
|
||||
class Timer {
|
||||
public:
|
||||
Timer(TimingCategory& category) : category(category) {
|
||||
Timer(TimingCategory& _category) : category(_category) {
|
||||
}
|
||||
|
||||
void Start() {
|
||||
|
|
|
@ -38,8 +38,8 @@ private:
|
|||
template <typename T>
|
||||
class SynchronizedRef {
|
||||
public:
|
||||
SynchronizedRef(SynchronizedWrapper<T>& wrapper) : wrapper(&wrapper) {
|
||||
wrapper.mutex.lock();
|
||||
SynchronizedRef(SynchronizedWrapper<T>& _wrapper) : wrapper(&_wrapper) {
|
||||
_wrapper.mutex.lock();
|
||||
}
|
||||
|
||||
SynchronizedRef(SynchronizedRef&) = delete;
|
||||
|
|
Loading…
Reference in a new issue