lib/upnp/Util: remove parameter "skipinit", always true
This commit is contained in:
@@ -71,15 +71,14 @@ path_getfather(const std::string &s)
|
||||
|
||||
std::list<std::string>
|
||||
stringToTokens(const std::string &str,
|
||||
const char *delims, bool skipinit)
|
||||
const char *delims)
|
||||
{
|
||||
std::list<std::string> tokens;
|
||||
|
||||
std::string::size_type startPos = 0;
|
||||
std::string::size_type startPos = str.find_first_not_of(delims, 0);
|
||||
|
||||
// Skip initial delims, return empty if this eats all.
|
||||
if (skipinit &&
|
||||
(startPos = str.find_first_not_of(delims, 0)) == std::string::npos)
|
||||
if (startPos == std::string::npos)
|
||||
return tokens;
|
||||
|
||||
while (startPos < str.size()) {
|
||||
|
@@ -34,7 +34,7 @@ path_getfather(const std::string &s);
|
||||
gcc_pure
|
||||
std::list<std::string>
|
||||
stringToTokens(const std::string &str,
|
||||
const char *delims = "/", bool skipinit = true);
|
||||
const char *delims = "/");
|
||||
|
||||
template <class T>
|
||||
bool
|
||||
|
Reference in New Issue
Block a user