summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Disco/CapsFileStorage.cpp')
-rw-r--r--Swiften/Disco/CapsFileStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Disco/CapsFileStorage.cpp b/Swiften/Disco/CapsFileStorage.cpp
index c5326a7..107cf28 100644
--- a/Swiften/Disco/CapsFileStorage.cpp
+++ b/Swiften/Disco/CapsFileStorage.cpp
@@ -30,7 +30,7 @@ DiscoInfo::ref CapsFileStorage::getDiscoInfo(const String& hash) const {
DiscoInfoParser parser;
PayloadParserTester tester(&parser);
tester.parse(String(data.getData(), data.getSize()));
- return DiscoInfo::cast(parser.getPayload());
+ return boost::dynamic_pointer_cast<DiscoInfo>(parser.getPayload());
}
else {
return DiscoInfo::ref();