aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/upnp/ssdpconnection.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-09-24 08:30:54 +0000
committerGravatar Fabio Bas2008-09-24 08:30:54 +0000
commitedc59c8a19f05f8b3eca59eb0a20ac7532634845 (patch)
treed8407c7c5c61bd48fe035fd3387600827c6aaff4 /src/modules/upnp/ssdpconnection.cpp
parentforward-port newline fix, refs r2540 (diff)
downloadKVIrc-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.cpp6
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)