diff options
| author | 2008-09-24 08:30:54 +0000 | |
|---|---|---|
| committer | 2008-09-24 08:30:54 +0000 | |
| commit | edc59c8a19f05f8b3eca59eb0a20ac7532634845 (patch) | |
| tree | d8407c7c5c61bd48fe035fd3387600827c6aaff4 /src/modules/upnp/ssdpconnection.cpp | |
| parent | forward-port newline fix, refs r2540 (diff) | |
| download | KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.tar.gz KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.tar.bz2 KVIrc-edc59c8a19f05f8b3eca59eb0a20ac7532634845.zip | |
finished porting of module upnp to pure qt4
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2543 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/upnp/ssdpconnection.cpp')
| -rw-r--r-- | src/modules/upnp/ssdpconnection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/upnp/ssdpconnection.cpp b/src/modules/upnp/ssdpconnection.cpp index a36dca317..7bd1c87e3 100644 --- a/src/modules/upnp/ssdpconnection.cpp +++ b/src/modules/upnp/ssdpconnection.cpp @@ -97,8 +97,8 @@ void SsdpConnection::slotDataReceived() QString sspdResponse = QString::fromUtf8(datagram.data(), datagram.size()); // Find the location field manually, MimeMessage is not required - int locationStart = sspdResponse.find("LOCATION:",0,false); // case insensitive - int locationEnd = sspdResponse.find("\r\n",locationStart); + int locationStart = sspdResponse.indexOf("LOCATION:",0,Qt::CaseInsensitive); + int locationEnd = sspdResponse.indexOf("\r\n",locationStart,Qt::CaseSensitive); locationStart += 9; // length of field name QString location = sspdResponse.mid(locationStart, locationEnd - locationStart); @@ -138,7 +138,7 @@ void SsdpConnection::queryDevices(int bindPort) } // Send the data - QByteArray dataBlock = data.utf8(); + QByteArray dataBlock = data.toUtf8(); int bytesWritten = m_pSocket->writeDatagram(dataBlock.data(), dataBlock.size(), address, 1900); if(bytesWritten == -1) |
