performance Prefer prefix ++/-- operators for non-primitive types.

This commit is contained in:
satbaby
2012-04-28 10:56:27 +02:00
parent f36ee26d87
commit bb347b3a44
41 changed files with 117 additions and 117 deletions

View File

@@ -445,7 +445,7 @@ std::list<UPnPAttribute> CUPnPDevice::SendSOAP(std::string servicename, std::str
std::list<CUPnPService>::iterator i;
std::list<UPnPAttribute> empty;
for (i=services.begin(); i != services.end(); i++)
for (i=services.begin(); i != services.end(); ++i)
{
if (i->servicename == servicename)
return i->SendSOAP(action, attribs);
@@ -458,7 +458,7 @@ std::list<std::string> CUPnPDevice::GetServices(void)
std::list<CUPnPService>::iterator i;
std::list<std::string> result;
for (i=services.begin(); i != services.end(); i++)
for (i=services.begin(); i != services.end(); ++i)
result.push_back(i->servicename);
return result;
}

View File

@@ -67,7 +67,7 @@ std::list<UPnPAttribute> CUPnPService::SendSOAP(std::string action, std::list<UP
post << "/>";
} else {
post << ">";
for (i = attribs.begin(); i != attribs.end(); i++)
for (i = attribs.begin(); i != attribs.end(); ++i)
{
if (i->second == "")
post << "<" << i->first << "/>";

View File

@@ -140,7 +140,7 @@ std::vector<CUPnPDevice> CUPnPSocket::Discover(std::string service)
if (line.substr(0,7) == "http://")
{
std::vector<CUPnPDevice>::iterator i;
for (i=devices.begin(); i != devices.end(); i++)
for (i=devices.begin(); i != devices.end(); ++i)
if (line == i->descurl)
goto found;
try