Profiler: Fix variable shadowing

This commit is contained in:
Paul "Dettorer" Hervot 2015-11-29 10:58:34 +01:00 committed by Paul Dettorer Hervot
parent 58180a2db0
commit 1b1f61fe4c
3 changed files with 7 additions and 7 deletions

View file

@ -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() {

View file

@ -84,7 +84,7 @@ private:
*/
class Timer {
public:
Timer(TimingCategory& category) : category(category) {
Timer(TimingCategory& _category) : category(_category) {
}
void Start() {

View file

@ -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;