mirror of https://github.com/aria2/aria2
Cosmetic change
parent
88580da587
commit
df0be5e7f0
|
@ -54,14 +54,19 @@ uint16_t getDefaultPort(const std::string& protocol)
|
||||||
std::string featureSummary()
|
std::string featureSummary()
|
||||||
{
|
{
|
||||||
std::string s;
|
std::string s;
|
||||||
for(int i = 0; i < MAX_FEATURE; ++i) {
|
int first;
|
||||||
|
for(first = 0; first < MAX_FEATURE && !strSupportedFeature(first); ++first);
|
||||||
|
if(first < MAX_FEATURE) {
|
||||||
|
s += strSupportedFeature(first);
|
||||||
|
for(int i = first+1; i < MAX_FEATURE; ++i) {
|
||||||
const char* name = strSupportedFeature(i);
|
const char* name = strSupportedFeature(i);
|
||||||
if(name) {
|
if(name) {
|
||||||
s += name;
|
|
||||||
s += ", ";
|
s += ", ";
|
||||||
|
s += name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return util::strip(s, ", ");
|
}
|
||||||
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* strSupportedFeature(int feature)
|
const char* strSupportedFeature(int feature)
|
||||||
|
|
Loading…
Reference in New Issue