reapack

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

commit e8b05c10164d6e9334db5de61505b57c6ea96668
parent 7fc6a3801e66279653cba356b566f395d92c06ac
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 17 Jun 2017 19:52:43 -0400

core: refactor UseRootPath usage

Diffstat:
Msrc/reapack.cpp | 5+----
Msrc/reapack.hpp | 2+-
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/reapack.cpp b/src/reapack.cpp @@ -77,10 +77,9 @@ std::string ReaPack::resourcePath() ReaPack::ReaPack(REAPER_PLUGIN_HINSTANCE instance) : syncAction(), browseAction(), importAction(), configAction(), m_tx(nullptr), m_progress(nullptr), m_browser(nullptr), m_manager(nullptr), - m_about(nullptr), m_instance(instance) + m_about(nullptr), m_instance(instance), m_useRootPath(resourcePath()) { m_mainWindow = GetMainHwnd(); - m_useRootPath = new UseRootPath(resourcePath()); DownloadContext::GlobalInit(); RichEdit::Init(); @@ -108,8 +107,6 @@ ReaPack::~ReaPack() delete m_config; DownloadContext::GlobalCleanup(); - - delete m_useRootPath; } int ReaPack::setupAction(const char *name, const ActionCallback &callback) diff --git a/src/reapack.hpp b/src/reapack.hpp @@ -98,7 +98,7 @@ private: REAPER_PLUGIN_HINSTANCE m_instance; HWND m_mainWindow; - UseRootPath *m_useRootPath; + UseRootPath m_useRootPath; }; #endif