reapack

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

commit 5c6561bfe727d206140023c32dbd1e13e2a77b50
parent e8b05c10164d6e9334db5de61505b57c6ea96668
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 17 Jun 2017 19:53:10 -0400

path: make predefined directories const

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

diff --git a/src/path.cpp b/src/path.cpp @@ -32,10 +32,10 @@ static const char SEPARATOR = '\\'; static const string DOT = "."; static const string DOTDOT = ".."; -Path Path::DATA = Path("ReaPack"); -Path Path::CACHE = Path::DATA + "cache"; -Path Path::CONFIG = Path("reapack.ini"); -Path Path::REGISTRY = Path::DATA + "registry.db"; +const Path Path::DATA = Path("ReaPack"); +const Path Path::CACHE = Path::DATA + "cache"; +const Path Path::CONFIG = Path("reapack.ini"); +const Path Path::REGISTRY = Path::DATA + "registry.db"; Path Path::s_root; diff --git a/src/path.hpp b/src/path.hpp @@ -25,10 +25,10 @@ class UseRootPath; class Path { public: - static Path DATA; - static Path CACHE; - static Path CONFIG; - static Path REGISTRY; + static const Path DATA; + static const Path CACHE; + static const Path CONFIG; + static const Path REGISTRY; static Path prefixRoot(const Path &p) { return s_root + p; } static Path prefixRoot(const std::string &p) { return s_root + p; }