From cd61f8afe0f1109db5730c48481fec3b8d081ecd Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 17 Jul 2023 10:39:46 +0200 Subject: [PATCH] progress: cleanup Signed-off-by: Simon Rozman --- include/stdex/progress.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/stdex/progress.hpp b/include/stdex/progress.hpp index a553bcb9b..b4ae50fd3 100644 --- a/include/stdex/progress.hpp +++ b/include/stdex/progress.hpp @@ -181,10 +181,10 @@ namespace stdex /// inline void set_global_range(_In_ T start, _In_ T end) { - m_glob.start = start; - m_glob.end = end; + m_global.start = start; + m_global.end = end; if (m_host) - m_host->set_range(m_glob.start, m_glob.end); + m_host->set_range(m_global.start, m_global.end); } /// @@ -195,8 +195,8 @@ namespace stdex /// inline void set_section_range(_In_ T start, _In_ T end) { - m_odsek.start = start; - m_odsek.end = end; + m_section.start = start; + m_section.end = end; } /// @@ -218,8 +218,8 @@ namespace stdex /// virtual void set_range(_In_ T start, _In_ T end) { - m_kaz.start = start; - m_kaz.end = end; + m_local.start = start; + m_local.end = end; } /// @@ -230,10 +230,10 @@ namespace stdex virtual void set(_In_ T value) { if (m_host) { - T dolzina = m_kaz.size(); - if (dolzina != 0) { + T size = m_local.size(); + if (size != 0) { // TODO: Implement with muldiv. - m_host->set(((value - m_kaz.start) * m_odsek.size() / dolzina) + m_odsek.start); + m_host->set(((value - m_local.start) * m_section.size() / size) + m_section.start); } } } @@ -259,7 +259,7 @@ namespace stdex protected: progress* m_host; - interval m_kaz, m_glob, m_odsek; + interval m_local, m_global, m_section; }; ///