summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-12-03 20:42:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-12-03 20:42:48 (GMT)
commit09308b9a81ddb960c45fc38e3bdf9d45cd1713f7 (patch)
treec984551890b4db8a90d384bda3794de25143bd15 /Swiften/Network
parenta70afd502466e229e3f0d5dec08b5458ad52cbac (diff)
downloadswift-09308b9a81ddb960c45fc38e3bdf9d45cd1713f7.zip
swift-09308b9a81ddb960c45fc38e3bdf9d45cd1713f7.tar.bz2
Fixed windows compilation of PlatformDomainNameServiceQuery.
Diffstat (limited to 'Swiften/Network')
-rw-r--r--Swiften/Network/PlatformDomainNameServiceQuery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Network/PlatformDomainNameServiceQuery.cpp b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
index bc2138d..13f5fc8 100644
--- a/Swiften/Network/PlatformDomainNameServiceQuery.cpp
+++ b/Swiften/Network/PlatformDomainNameServiceQuery.cpp
@@ -64,7 +64,7 @@ void PlatformDomainNameServiceQuery::doRun() {
DNS_RECORD* currentEntry = responses;
while (currentEntry) {
if (currentEntry->wType == DNS_TYPE_SRV) {
- SRVRecord record;
+ DomainNameServiceQuery::Result record;
record.priority = currentEntry->Data.SRV.wPriority;
record.weight = currentEntry->Data.SRV.wWeight;
record.port = currentEntry->Data.SRV.wPort;
@@ -73,7 +73,7 @@ void PlatformDomainNameServiceQuery::doRun() {
// conversion to not work at all, but it does.
// Actually, it doesn't. Fix this and remove explicit cast
// Remove unicode undef above as well
- record.hostname = std::string((const char*) currentEntry->Data.SRV.pNameTarget);
+ record.hostname = String((const char*) currentEntry->Data.SRV.pNameTarget);
records.push_back(record);
}
currentEntry = currentEntry->pNext;