reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 78cdf4f0a0723c2225f7c14fe7353bdf107dfe6b
parent 97be2e0f9ee7df7fc12488a4b24d2f0f7d01fddb
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Thu, 31 Dec 2015 16:18:59 -0500

mild code refactoring

Diffstat:
Msrc/progress.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/progress.cpp b/src/progress.cpp @@ -21,8 +21,6 @@ #include "resource.hpp" #include "transaction.hpp" -static const auto_char *TITLE = AUTO_STR("ReaPack: Download in progress"); - using namespace std; Progress::Progress() @@ -96,7 +94,9 @@ void Progress::updateProgress() const double pos = (double)m_done / m_total; const int percent = (int)(pos * 100); - const auto_string title = auto_string(TITLE) + + static const auto_string TITLE = AUTO_STR("ReaPack: Download in progress"); + + const auto_string title = TITLE + AUTO_STR(" (") + to_autostring(percent) + AUTO_STR("%)"); SendMessage(m_progress, PBM_SETPOS, percent, 0);