reapack

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

commit a84af7e3605a16afcf5b6b7e49cb0af8773f65da
parent fbc806b293c45bcf68e5676fdbfafc9f92463402
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Wed,  2 Dec 2015 01:29:04 -0500

mild refactoring...

Diffstat:
Msrc/reapack.cpp | 2++
Mtest/path.cpp | 9++-------
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/reapack.cpp b/src/reapack.cpp @@ -24,6 +24,8 @@ void ReaPack::init(REAPER_PLUGIN_HINSTANCE instance, reaper_plugin_info_t *rec) void ReaPack::cleanup() { + // for some reasons ~ReaPack() is called many times during startup + // and two times during shutdown on osx... cleanup() is called only once m_config.write(); } diff --git a/test/path.cpp b/test/path.cpp @@ -9,13 +9,8 @@ using namespace std; static const char *M = "[path]"; TEST_CASE("compare paths", M) { - Path a; - a.append("hello"); - a.append("world"); - - Path b; - b.append("chunky"); - b.append("bacon"); + const Path a = Path() + "hello" + "world"; + const Path b = Path() + "chunky" + "bacon"; REQUIRE_FALSE(a == b); REQUIRE(a != b);