Clean up formatting/naming
This commit is contained in:
parent
806e45fc5c
commit
a4b59ddb86
4
main.cpp
4
main.cpp
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue