reapack

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

commit c2777c139fa705579b18a37784eb9e6847090546
parent 5af2b4e04c261bdcbb2b3073f601ac1c9c93c421
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue, 12 Sep 2017 21:16:33 -0400

(small code cleanup)

Diffstat:
Msrc/listview.cpp | 2+-
Msrc/manager.cpp | 2--
Msrc/version.cpp | 5++---
3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/listview.cpp b/src/listview.cpp @@ -22,7 +22,7 @@ #include "version.hpp" #include "win32.hpp" -#include <boost/algorithm/string.hpp> +#include <boost/algorithm/string/case_conv.hpp> #ifdef _WIN32 # include <commctrl.h> diff --git a/src/manager.cpp b/src/manager.cpp @@ -32,8 +32,6 @@ #include "transaction.hpp" #include "win32.hpp" -#include <boost/algorithm/string/join.hpp> - static const Win32::char_type *ARCHIVE_FILTER = L("ReaPack Offline Archive (*.ReaPackArchive)\0*.ReaPackArchive\0"); static const Win32::char_type *ARCHIVE_EXT = L("ReaPackArchive"); diff --git a/src/version.cpp b/src/version.cpp @@ -97,10 +97,9 @@ void VersionName::parse(const string &str) vector<Segment> segments; for(sregex_iterator it = begin; it != end; it++) { - const string match = it->str(0); - const char first = tolower(match[0]); + const string &match = it->str(0); - if(first >= 'a' || first >= 'z') { + if(isalpha(match[0])) { if(segments.empty()) // got leading letters throw reapack_error(String::format("invalid version name '%s'", str.c_str()));