summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-09-26 18:41:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-09-26 18:41:45 (GMT)
commit4d6cd5c12a10bbe87cc271f99e6d58eaae2ddeec (patch)
tree9c2007529143478ff34ef6155445fc396acb4f14 /Swiften/FileTransfer
parent24789b785b21f19c99d9c214ba1b0f5ece8fd09f (diff)
downloadswift-4d6cd5c12a10bbe87cc271f99e6d58eaae2ddeec.zip
swift-4d6cd5c12a10bbe87cc271f99e6d58eaae2ddeec.tar.bz2
Avoid the use of at().
Diffstat (limited to 'Swiften/FileTransfer')
-rw-r--r--Swiften/FileTransfer/IncomingJingleFileTransfer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp b/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
index 1189830..0481a47 100644
--- a/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
+++ b/Swiften/FileTransfer/IncomingJingleFileTransfer.cpp
@@ -243,11 +243,11 @@ void IncomingJingleFileTransfer::handleSessionInfoReceived(JinglePayload::ref ji
SWIFT_LOG(debug) << "Recevied hash information." << std::endl;
if (transferHash->getHashes().find("sha-1") != transferHash->getHashes().end()) {
algo = "sha-1";
- hash = transferHash->getHashes().at("sha-1");
+ hash = transferHash->getHashes().find("sha-1")->second;
}
else if (transferHash->getHashes().find("md5") != transferHash->getHashes().end()) {
algo = "md5";
- hash = transferHash->getHashes().at("md5");
+ hash = transferHash->getHashes().find("md5")->second;
}
checkIfAllDataReceived();
}