Clean up formatting/naming

This commit is contained in:
Daniel Schulte 2020-11-26 19:40:39 +01:00
parent 806e45fc5c
commit a4b59ddb86
1 changed files with 3 additions and 3 deletions

View File

@ -164,10 +164,10 @@ void fetch_videos_for_channel(Channel &channel, bool name_in_title=false)
channel.load_info(db);
}
bool startswith(const std::string &what, const std::string &with)
bool startswith(const std::string &str, const std::string &with)
{
const size_t len = with.length();
return what.substr(0, len) == with;
return str.substr(0, len) == with;
}
std::string replace(const std::string &str, const std::string &what, const std::string &with)