mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Merge branch 'dvbsi++' of coolstreamtech.de:cst-public-gui-neutrino into dvbsi++
This commit is contained in:
@@ -387,7 +387,7 @@ std::string CUPnPDevice::HTTP(std::string url, std::string post, std::string act
|
||||
}
|
||||
path = url.substr(pos2);
|
||||
|
||||
if (post.size())
|
||||
if (!post.empty())
|
||||
command << "POST " << path << " HTTP/1.0\r\n";
|
||||
else
|
||||
command << "GET " << path << " HTTP/1.0\r\n";
|
||||
@@ -397,18 +397,18 @@ std::string CUPnPDevice::HTTP(std::string url, std::string post, std::string act
|
||||
command << "Accept: text/xml\r\n";
|
||||
command << "Connection: Close\r\n";
|
||||
|
||||
if (post.size())
|
||||
if (!post.empty())
|
||||
{
|
||||
command << "Content-Length: " << post.size() << "\r\n";
|
||||
command << "Content-Type: text/xml\r\n";
|
||||
}
|
||||
|
||||
if (action.size())
|
||||
if (!action.empty())
|
||||
command << "SOAPAction: \"" << action << "\"\r\n";
|
||||
|
||||
command << "\r\n";
|
||||
|
||||
if (post.size())
|
||||
if (!post.empty())
|
||||
command << post;
|
||||
|
||||
t_socket = socket(PF_INET, SOCK_STREAM, 0);
|
||||
|
@@ -247,7 +247,7 @@ int CTimerdClient::addTimerEvent( CTimerd::CTimerEventTypes evType, void* data,
|
||||
//printf("[CTimerdClient] checking for overlapping timers\n");
|
||||
CTimerd::TimerList overlappingTimer;
|
||||
overlappingTimer = getOverlappingTimers(alarmtime, stoptime);
|
||||
if (overlappingTimer.size() > 0)
|
||||
if (!overlappingTimer.empty())
|
||||
{
|
||||
// timerd starts eventID at 0 so we can return -1
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user