commit 87b8c2efdececc0dede355d0bbc74f371c564db9 parent 2ae7f2df807023c40059b1ff6ba84c3bf4dc0fa7 Author: cfillion <cfillion@users.noreply.github.com> Date: Mon, 11 Sep 2017 02:30:51 -0400 (slight code cleanup) Diffstat:
M | src/path.cpp | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/path.cpp b/src/path.cpp @@ -24,13 +24,13 @@ using namespace std; #ifndef _WIN32 -static const char SEPARATOR = '/'; +static constexpr char SEPARATOR = '/'; #else -static const char SEPARATOR = '\\'; +static constexpr char SEPARATOR = '\\'; #endif -static const string DOT = "."; -static const string DOTDOT = ".."; +static constexpr const char *DOT = "."; +static constexpr const char *DOTDOT = ".."; const Path Path::DATA("ReaPack"); const Path Path::CACHE = Path::DATA + "cache"; @@ -60,7 +60,7 @@ static vector<string> Split(const string &input, bool *absolute) const string &part = input.substr(last, pos - last); - if(!part.empty() && part != ".") + if(!part.empty() && part != DOT) list.push_back(part); last = pos + 1;