Skip to content

Commit

Permalink
tiny refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Aug 2, 2019
1 parent e23e488 commit e2b55b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Player/YouTuber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <iterator>
#include <streambuf>
#include <algorithm>
#include <cctype>
#include <map>
#include <memory>
#include <utility>
Expand Down Expand Up @@ -174,9 +175,7 @@ std::string urlencode(const std::string& s)
for (size_t i = 0, l = s.size(); i < l; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') ||
(c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
if (std::isalnum(c) ||
c == '-' || c == '_' || c == '.' || c == '!' || c == '~' ||
c == '*' || c == '\'' || c == '(' || c == ')')
{
Expand Down
2 changes: 0 additions & 2 deletions Player/smbPitchShift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,3 @@ void CSmbPitchShift::smbPitchShift(float pitchShift, long numSampsToProcess, lon
}
}
}

// -----------------------------------------------------------------------------------------------------------------

0 comments on commit e2b55b5

Please sign in to comment.